I included std_lib_facilities.h from the book "Principles and Practice using C++", i wrote my code but cannot compile. i get the following error
Error:
/usr/include/c++/5.3.1/bits/locale_facets_nonio.h: At global scope:
/usr/include/c++/5.3.1/bits/locale_facets_nonio.h:1971:5: error: template-id 'do_get<>' for 'String std::__cxx11::messages<char>::do_get(std::messages_base::catalog, int, int, const String&) const' does not match any template declaration
messages<char>::do_get(catalog, int, int, const string&) const;
^
inside locale_facets_nonio.h which shows a locked icon next to it so i suppose cannot be modified:
1 2 3 4 5
|
/// Specializations for required instantiations.
template<>
string
messages<char>::do_get(catalog, int, int, const string&) const; //this line is the problem
|
i have no idea what to do. Can i even get rid of this problem?
using fedora, latest c++std in g++,codelite ide, all up to date
similar, but on codelite and NOT that code, and a smaller example, as:
http://www.cplusplus.com/forum/general/76964/