]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/filesystem/test/issues/6638-global-init-fails-3.cpp
467a638afbc18be57cca012e09e514ab0deb7913
1 #include <boost/filesystem.hpp>
2 #include <boost/detail/lightweight_main.hpp>
5 using namespace boost::filesystem
;
7 // The original bug report was that this broke:
8 // path p(L"C:\\TEMP\\");
9 // path r(p / "narrow");
10 // That code now works, but ...
12 // Nils Gladitz has provided this example ...
19 path
p(L
"C:\\TEMP\\");
26 // fails if static linked and Test object is global variable, but does not fail if
27 // path p("narrow") line above is not commented out, and also does not fail if the
28 // Test test2 line below is commented out.
33 int cpp_main(int, char* [])