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.



Boost list run by bdawes at, gregod at, cpdaniel at, john at