Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-05-13 08:17:37


From: "Thomas Witt" <witt_at_[hidden]>
>
> The code uses zero to intialize shared_ptr's. Intel 6 marks this as
illegal as
> he cannot find a ctor overload taking an int.
>
> I tend to agree with the compiler. BTW isn't zero initializing redundant ?

This is a post-1.27 change in shared_ptr; the earlier versions could be
initialized with literal 0, but the latest incarnation needs a pointer type.
The recommended way to create a NULL shared_ptr in 1.28 is via the default
constructor (it doesn't require a complete type.)


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