diff options
author | Rafael Sadowski <rafael@sizeofvoid.org> | 2021-08-16 06:34:02 +0200 |
---|---|---|
committer | Rafael Sadowski <rafael@sizeofvoid.org> | 2021-08-24 12:49:02 +0200 |
commit | acb7aad27ec8a184808aa7905887e3b2c5d54e9c (patch) | |
tree | 7ed2856bb3c5ee3b78c633e1527dae882821c65a /src/fs.cpp | |
parent | 3facf0a8ae99a03f5e2fb709b8d86c47328d363c (diff) |
Fix build with Boost 1.77.0
BOOST_FILESYSTEM_C_STR changed to accept the path as an argument
Diffstat (limited to 'src/fs.cpp')
-rw-r--r-- | src/fs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fs.cpp b/src/fs.cpp index 4f20ca4d28..89c7ad27dc 100644 --- a/src/fs.cpp +++ b/src/fs.cpp @@ -242,7 +242,11 @@ void ofstream::close() } #else // __GLIBCXX__ +#if BOOST_VERSION >= 107700 +static_assert(sizeof(*BOOST_FILESYSTEM_C_STR(fs::path())) == sizeof(wchar_t), +#else static_assert(sizeof(*fs::path().BOOST_FILESYSTEM_C_STR) == sizeof(wchar_t), +#endif // BOOST_VERSION >= 107700 "Warning: This build is using boost::filesystem ofstream and ifstream " "implementations which will fail to open paths containing multibyte " "characters. You should delete this static_assert to ignore this warning, " |