http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46544
Summary: std::map::at() defined even if __GXX_EXPERIMENTAL_CXX0X__ is not Product: gcc Version: unknown Status: UNCONFIRMED Severity: trivial Priority: P3 Component: libstdc++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: phres...@gmail.com The function std::map::at(), first defined by the upcoming standard, slips into C++03 mode. $ diff -ru include/c++/bits/stl_map.h.orig include/c++/bits/stl_map.h --- include/c++/bits/stl_map.h.orig 2010-11-18 15:21:42 +0000 +++ include/c++/bits/stl_map.h 2010-11-18 15:20:02 +0000 @@ -452,6 +452,7 @@ return (*__i).second; } +#ifdef __GXX_EXPERIMENTAL_CXX0X__ // _GLIBCXX_RESOLVE_LIB_DEFECTS // DR 464. Suggestion for new member functions in standard containers. /** @@ -478,6 +479,7 @@ __throw_out_of_range(__N("map::at")); return (*__i).second; } +#endif // modifiers /**