Skip to content

Commit

Permalink
Merge pull request #2329 from barton2526/fix_boost_fs
Browse files Browse the repository at this point in the history
Fix build with Boost 1.77.0
  • Loading branch information
jamescowens committed Sep 12, 2021
2 parents 537a4fb + d7e2105 commit 9e59d10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,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, "
Expand Down

0 comments on commit 9e59d10

Please sign in to comment.