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.


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