Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-09-04 17:36:23


"Robert Ramey" <ramey_at_[hidden]> writes:

>> 3. In that reference section, '&' is used repeatedly where only '>>'
>> is appropriate. For example:
>>
>> main(){
>> ...
>> base *b;
>> ar & b;
>> }
>>
>> That can only be confusing.
>
> Hmm - I checked that section and maybe it is confusing but not in the way
> it seems.
>
> the registration or export must be done on BOTH saving and loading of
> archives.

It doesn't matter, since saving through an unitialized pointer causes
undefined behavior. That code can only work for loading.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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