$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [optional] memory use for optional refs and ptrs
From: Rutger ter Borg (rutger_at_[hidden])
Date: 2010-10-06 03:32:26
On 2010-10-05 16:37, Christopher Jefferson wrote:
>
>
> Yes, for example while NULL is a sensible pointer to store, I decided I would never want to represent (void*)1, so I specialised boost::optional to use that. It is also possible to come up with impossible states for most standard library objects (std::vector, std::list) if you know how they are stored internally. However I'm not sure such code could be submitted to boost.
This is the stuff I am expecting in the first place: A nice and clean
interface, and implemented in an efficient way.
Cheers,
Rutger