Boost logo

Boost :

From: Philippe A. Bouchard (philippe_at_[hidden])
Date: 2003-09-30 17:29:27


David Abrahams wrote:

[...]

>> This way it would be possible to force the following syntax:
>>
>> shifted_ptr<int> p = new stype<int>(9);
>
> Why is that good?

The syntax is different and restricts more than the placement operator new,
but make_shifted_ptr<>() is even safer to use.

Philippe


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