boost::filesystem::path is a wide string on Windows
[folly.git] / folly / test / ExceptionTest.cpp
index 30a70da0d646e206b6fd29f470d59465bc71246f..a77725d9729095ec87470d763066cba918a56888 100644 (file)
@@ -76,7 +76,7 @@ TEST(ExceptionTest, Simple) {
 
   TemporaryDirectory tmpdir;
   auto exnpath = tmpdir.path() / "ExceptionTest";
-  auto fp = fopen(exnpath.c_str(), "w+b");
+  auto fp = fopen(exnpath.string().c_str(), "w+b");
   ASSERT_TRUE(fp != nullptr);
   SCOPE_EXIT { fclose(fp); };