On Thu, Jun 15, 2017 at 3:32 PM, Frédéric Bron via Boost
This simple program compiles nicely on Linux+gcc 6.3.0 but fails to compile on x86_64-w64-mingw (6.3.0, std=c++14):
#include "nowide/fstream.hpp" int main() { auto f = nowide::fstream("toto.log"); return 0; }
instead of auto f=..., nowide::fstream f("toto.log") works fine.
The error is: toto.cpp:4:38: erreur : use of deleted function « nowide::basic_fstream<char>::basic_fstream(const nowide::basic_fstream<char>&) » auto f = nowide::fstream("toto.log"); ^
Ok I see, Nowide misses some of the C++11 interfaces - for example move constructor but it shouldn't be hard to implement ones. Also I wasn't aware that auto f = nowide::fstream("toto.log"); Can actually call move constructor. Artyom