Use fold expr in fs::write_file

This commit is contained in:
Nekotekina 2018-09-01 18:12:13 +03:00
parent 01b4c68238
commit a6d06b2e20

View file

@ -619,7 +619,7 @@ namespace fs
if (fs::file f{path, mode})
{
// Write args sequentially
int seq[]{ (f.write(args), 0)... };
(f.write(args), ...);
return true;
}