Initialize ofstream in constructor class, only working with c++11
问题 The following code compile flowlessly using g++ -I. -std=c++0x -Wall -g -Werror *.cpp -o main but without the -std=c++0x switch, it says main.cpp: In constructor ‘Out<T>::Out(const string&) [with T = double, std::string = std::basic_string<char>]’: main.cpp:274:42: instantiated from here main.cpp:34:113: erreur: no matching function for call to ‘std::basic_ofstream<char>::basic_ofstream(const string&, std::_Ios_Openmode)’ main.cpp:34:113: note: candidates are: /usr/include/c++/4.6/fstream:629