Boost logo

Boost :

Subject: Re: [boost] shared_ptr<>: why no operator[] ?
From: Julien Nitard (julien.nitard_at_[hidden])
Date: 2011-07-27 05:31:16


>
> boost::shared_ptr<int> p(new int(42));
>

Correct me if I am wrong but this is perfectly valid. It allocates a single
int and assigns it the value 42. It doesn't create an array.

regards,

Julien


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