Use fold expr in fs::write_file
This commit is contained in:
+1
-1
@@ -619,7 +619,7 @@ namespace fs
|
|||||||
if (fs::file f{path, mode})
|
if (fs::file f{path, mode})
|
||||||
{
|
{
|
||||||
// Write args sequentially
|
// Write args sequentially
|
||||||
int seq[]{ (f.write(args), 0)... };
|
(f.write(args), ...);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user