Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 816885
Collapse All | Expand All

(-)a/src/fs.cpp (+4 lines)
Lines 242-248 void ofstream::close() Link Here
242
}
242
}
243
#else // __GLIBCXX__
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
static_assert(sizeof(*fs::path().BOOST_FILESYSTEM_C_STR) == sizeof(wchar_t),
248
static_assert(sizeof(*fs::path().BOOST_FILESYSTEM_C_STR) == sizeof(wchar_t),
249
#endif // BOOST_VERSION >= 107700
246
    "Warning: This build is using boost::filesystem ofstream and ifstream "
250
    "Warning: This build is using boost::filesystem ofstream and ifstream "
247
    "implementations which will fail to open paths containing multibyte "
251
    "implementations which will fail to open paths containing multibyte "
248
    "characters. You should delete this static_assert to ignore this warning, "
252
    "characters. You should delete this static_assert to ignore this warning, "
(-)a/src/wallet/test/db_tests.cpp (+4 lines)
Lines 25-31 BOOST_AUTO_TEST_CASE(getwalletenv_file) Link Here
25
    std::string test_name = "test_name.dat";
25
    std::string test_name = "test_name.dat";
26
    const fs::path datadir = gArgs.GetDataDirNet();
26
    const fs::path datadir = gArgs.GetDataDirNet();
27
    fs::path file_path = datadir / test_name;
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
    std::ofstream f(file_path.BOOST_FILESYSTEM_C_STR);
31
    std::ofstream f(file_path.BOOST_FILESYSTEM_C_STR);
32
#endif // BOOST_VERSION >= 107700
29
    f.close();
33
    f.close();
30
34
31
    std::string filename;
35
    std::string filename;
(-)a/src/wallet/test/init_test_fixture.cpp (+4 lines)
Lines 32-38 InitWalletDirTestingSetup::InitWalletDirTestingSetup(const std::string& chainNam Link Here
32
    fs::create_directories(m_walletdir_path_cases["default"]);
32
    fs::create_directories(m_walletdir_path_cases["default"]);
33
    fs::create_directories(m_walletdir_path_cases["custom"]);
33
    fs::create_directories(m_walletdir_path_cases["custom"]);
34
    fs::create_directories(m_walletdir_path_cases["relative"]);
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
    std::ofstream f(m_walletdir_path_cases["file"].BOOST_FILESYSTEM_C_STR);
38
    std::ofstream f(m_walletdir_path_cases["file"].BOOST_FILESYSTEM_C_STR);
39
#endif // BOOST_VERSION >= 107700
36
    f.close();
40
    f.close();
37
}
41
}
38
42

Return to bug 816885