[C++-sig] Re: HeldType - class has only non trivial constructor

David Abrahams dave at boost-consulting.com
Thu Aug 28 20:58:47 CEST 2003


"Roman Yakovenko" <romany at actimize.com> writes:

> As you may guess I can't compile this code ( MSVC 6.0 SP5 ). 
> The error is: cannot convert parameter 2 from 'const struct MyDerived' to 'const struct K &'
> The struct make_instance is instantiated (in case MyDerived ) with arguments 
> MyDerived and MyDerived_Wrapper. I just do know what I have to do in order
> write the wrapper. Some hint ?

MyDerived needs boost::noncopyable as it is, well, non-copyable.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list