test.cpp:43:113: error: no matching function for call to ‘write(std::fstream&, std::map<std::basic_string<char>, std::basic_string<char> >&)’
test.cpp:43:113: note: candidate is:
database/fileManager.hpp:72:7: note: template<class KEY, class TYPE> void database::write(std::ofstream&, std::map<KEY, TYPE>&)
test.cpp:48:110: error: no matching function for call to ‘read(std::fstream&, std::map<std::basic_string<char>, std::basic_string<char> >&)’
test.cpp:48:110: note: candidate is:
database/fileManager.hpp:84:7: note: template<class KEY, class TYPE> void database::read(std::ifstream&, std::map<KEY, TYPE>&)
can anyone help me? I do not know how to solve ...
Thanks!
error: invalid initialization of reference of type ‘std::ofstream&’ from expression of type ‘std::fstream’
error: in passing argument 1 of ‘void foo(std::ofstream&)’
IIRC fstream does derive from ofstream and ifstream, so I guess it is a bug in the compiler.