Boost logo

Boost :

Subject: Re: [boost] Boost and auto_ptr (was Boost 1.60.0 beta 1...)
From: Jonathan Wakely (jwakely.boost_at_[hidden])
Date: 2015-11-11 17:57:39


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 <jwakely.boost_at_[hidden]>
>> 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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk