mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
merge bitcoin#25808: work around u8path deprecated-declaration warnings with libc++
This commit is contained in:
parent
aa361b2717
commit
d2c968bf91
4
src/fs.h
4
src/fs.h
@ -68,7 +68,11 @@ public:
|
|||||||
|
|
||||||
static inline path u8path(const std::string& utf8_str)
|
static inline path u8path(const std::string& utf8_str)
|
||||||
{
|
{
|
||||||
|
#if __cplusplus < 202002L
|
||||||
return std::filesystem::u8path(utf8_str);
|
return std::filesystem::u8path(utf8_str);
|
||||||
|
#else
|
||||||
|
return std::filesystem::path(std::u8string{utf8_str.begin(), utf8_str.end()});
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disallow implicit std::string conversion for absolute to avoid
|
// Disallow implicit std::string conversion for absolute to avoid
|
||||||
|
Loading…
Reference in New Issue
Block a user