File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,11 @@ void ofstream::close()
242
242
}
243
243
#else // __GLIBCXX__
244
244
245
+ #if BOOST_VERSION >= 107700
246
+ static_assert (sizeof (*BOOST_FILESYSTEM_C_STR (fs::path())) == sizeof(wchar_t ),
247
+ #else
245
248
static_assert (sizeof (*fs::path ().BOOST_FILESYSTEM_C_STR) == sizeof(wchar_t ),
249
+ #endif // BOOST_VERSION >= 107700
246
250
" Warning: This build is using boost::filesystem ofstream and ifstream "
247
251
" implementations which will fail to open paths containing multibyte "
248
252
" characters. You should delete this static_assert to ignore this warning, "
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ BOOST_AUTO_TEST_CASE(getwalletenv_file)
25
25
std::string test_name = " test_name.dat" ;
26
26
const fs::path datadir = gArgs .GetDataDirNet ();
27
27
fs::path file_path = datadir / test_name;
28
+ #if BOOST_VERSION >= 107700
29
+ std::ofstream f (BOOST_FILESYSTEM_C_STR (file_path));
30
+ #else
28
31
std::ofstream f (file_path.BOOST_FILESYSTEM_C_STR );
32
+ #endif // BOOST_VERSION >= 107700
29
33
f.close ();
30
34
31
35
std::string filename;
Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ InitWalletDirTestingSetup::InitWalletDirTestingSetup(const std::string& chainNam
32
32
fs::create_directories (m_walletdir_path_cases[" default" ]);
33
33
fs::create_directories (m_walletdir_path_cases[" custom" ]);
34
34
fs::create_directories (m_walletdir_path_cases[" relative" ]);
35
+ #if BOOST_VERSION >= 107700
36
+ std::ofstream f (BOOST_FILESYSTEM_C_STR (m_walletdir_path_cases[" file" ]));
37
+ #else
35
38
std::ofstream f (m_walletdir_path_cases[" file" ].BOOST_FILESYSTEM_C_STR );
39
+ #endif // BOOST_VERSION >= 107700
36
40
f.close ();
37
41
}
38
42
You can’t perform that action at this time.
0 commit comments