Re: quantlib Handle compile error
Posted by
Luigi Ballabio on
May 24, 2010; 6:52am
URL: http://quantlib.414.s1.nabble.com/quantlib-Handle-compile-error-tp7722p7723.html
On Mon, 2010-05-24 at 13:35 +0800, P Nelnik wrote:
> When trying to use the quantlib Handle<.>, I got a compiler error:
>
> >c:\work\quantlib\quantlib-1.0.1\ql\handle.hpp(143) : error C2664:
> 'QuantLib::Observer::unregisterWith' : cannot convert parameter 1 from
> 'boost::shared_ptr<T>' to 'const boost::shared_ptr<T> &'
The implementation of Handle<T> requires T to inherit from Observable.
Luigi
--
Glendower: I can call spirits from the vasty deep.
Hotspur: Why, so can I, or so can any man;
But will they come when you do call for them?
-- King Henry the Fourth Part I, Act III, Scene I
------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users