On 11 November 2015 at 22:55, Jonathan Wakely wrote:
On 11 November 2015 at 22:42, Nevin Liber wrote:
On 11 November 2015 at 15:08, Jonathan Wakely
wrote: That doesn't mean implementors have to stop providing it, it only means it is no longer defined by the standard.
I'm not convinced they can.
Quoting [namespace.std]: "The behavior of a C++ program is undefined if it adds declarations or definitions to namespace std or to a namespace within namespace std unless otherwise specified."
In any case, that is a restriction on *users* not implementations. The thing that prevents implementations providing it is that "auto_ptr" is not a reserved name, so users could define a macro with that name, but that's disallowed by [zombie.names] which says that std::auto_ptr is a reserved name, even though the standard doesn't define anything with that name.