|
Boost : |
Subject: Re: [boost] std::map::find() wrapper
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2011-05-05 11:17:56
Den 05-05-2011 16:53, Thorsten Ottosen skrev:
> Den 05-05-2011 16:48, Marsh Ray skrev:
>> On 05/05/2011 05:52 AM, Thorsten Ottosen wrote:
>>>
>>> T* has the distict advantage that it is optimally efficient, even though
>>> that optional<T&> might slightly be more type-safe.
>>
>> sizeof(T*) is guaranteed to be nonzero, and in practice is 4 or 8 bytes,
>> whereas references are allowed to have no size at all.
>
> Can you mention just one ABI where references are merely pointers?
... not merely ...
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk