mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
refs #17, fix for wrong use of fs::ofstream
This commit is contained in:
parent
b5e18c859d
commit
e4e6246eaa
@ -193,7 +193,7 @@ private:
|
||||
|
||||
static void generateFile(const fs::path& pathname, int withSize = -1)
|
||||
{
|
||||
fs::ofstream outfile(pathname.string());
|
||||
fs::ofstream outfile(pathname);
|
||||
if (withSize < 0) {
|
||||
outfile << "Hello world!" << std::endl;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user