Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-04-07 11:31:11


From: "Eyal Farago" <eyalfa_at_[hidden]>
> Which is the latest version of shred_ptr? I ahve boost 1.27.0 on my
> machine.
> the following code did not compile:
>
> //main.cpp
> #include <boost\smart_ptr.hpp>
>
> class my_class;
>
> void main()
> {
> boost::shared_ptr<my_class> sp_my_class;
> }
>
> the error message:
> c:\boost_1_27_0\boost\checked_delete.hpp(26) : error C2027: use of
> undefined type 'my_class'
>
> -the file and line leads to boost::checked_delete()

Right, in 1.27.0 there was a single constructor, shared_ptr::shared_ptr(T *
p = 0), that required a complete type. The latest version in the CVS has a
separate default constructor.


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