Error inside of locale_facets_nonio.h

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/
Last edited on
My VC++2010 also doesn't compile it. VS2013 CE does. This include file uses some c++11 stuff that older compiler don't understand.

I don't use g++ but in some tutorials I saw they said you need to include std=C++11 somewhere in your compiler / project options.
Topic archived. No new replies allowed.