Closed sgbaird closed 4 years ago
Thank you! Actually, in my case std=c++11 is enough. The problem is constructing std::ofstream with std::string. Anyway, I updated the README.md. Thanks again!
Interesting, and good catch! I'm guessing I was originally compiling with less than c++11 then (whatever the default was on the server). Glad to help a bit.
I think at least C++14 is required, given that I got an error (using g++ (GCC) 5.5.0):
By specifying the use of c++14 (I think you need to use at least g++ 5 to compile with the -std=c++14 flag):
it seems to compile correctly, so it may be worth updating the README.
For the sake of completeness, here's the full error output / stack trace: