// filesystem/bug/bug.cpp #include #include #include //for GetTempPath from Windows namespace fs = boost::filesystem; int test_main(int, char*[]) // note name { std::basic_string temp_path(262, '\0'); GetTempPathW(temp_path.size(), &temp_path.front()); const auto boost_temp_path = fs::temp_directory_path(); BOOST_TEST(temp_path == boost_temp_path.native()); BOOST_TEST(fs::exists(boost_temp_path)); BOOST_TEST(fs::is_directory(boost_temp_path)); return ::boost::report_errors(); // required } // Copyright Beman Dawes 2014 // Distributed under the Boost Software License, Version 1.0. // www.boost.org/LICENSE_1_0.txt