Boost logo

Boost :

Subject: Re: [boost] [optional] memory use for optional refs and ptrs
From: Fernando Cacciola (fernando.cacciola_at_[hidden])
Date: 2010-10-05 13:55:17


On 05/10/2010 01:09 p.m., Jeffrey Lee Hellrung, Jr. wrote:
> On 10/5/2010 8:57 AM, Fernando Cacciola wrote:
> [...]
>> optional<> cannot decide *by itslef* that a particular value happens to
>> be equivalent to an uninitialized state. That is, a null pointer is not
>> neccesarily the same as none. This is particulary true in a generic
>> design when the type wrapped is unconstrained (i.e. T can be anything,
>> including a pointer) and the condition of uninitialized state *must* be
>> strict (i.e. not *any* value being given)
>
> What about "null references"?
>
What about it?

-- 
---
Fernando Cacciola
SciSoft Consulting, Founder
http://www.scisoft-consulting.com

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