Skip to content

Commit bfeca90

Browse files
committed
Use boost::filesystem::path::string() with std::ofstream for portability
1 parent 8c4e3bf commit bfeca90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/beast/http/file_body.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class file_body_test : public beast::unit_test::suite
168168
"0123456789"; // 40
169169
// create the temporary file
170170
{
171-
std::ofstream fstemp(temp.path().native());
171+
std::ofstream fstemp(temp.path().string());
172172
std::size_t written = 0;
173173
std::size_t to_write = 4097;
174174
while (written < to_write)
@@ -223,7 +223,7 @@ class file_body_test : public beast::unit_test::suite
223223
"0123456789"; // 40
224224
// create the temporary file
225225
{
226-
std::ofstream fstemp(temp.path().native());
226+
std::ofstream fstemp(temp.path().string());
227227
std::size_t written = 0;
228228
std::size_t to_write = 2048;
229229
while (written < to_write)

0 commit comments

Comments
 (0)