> ifstream fin = ifstream();
> ofstream fout = ofstream();
> Basically, this worked in Visual Studio but did not in Linux
This would work everywhere:
1 2 3 4 5
// ifstream fin = ifstream();
std::ifstream fin ;
// ofstream fout = ofstream();
std::ofstream fout ;
Note: file streams are MoveConstructible in conforming implementations. However, many (most?) linux distributions ship with versions of the GNU implementation before GCC 5.2, where the standard C++ library implementation is broken in more places than one would care to enumerate.