Login  Register

Re: quantlib Handle compile error

Posted by Luigi Ballabio on May 24, 2010; 3:46pm
URL: http://quantlib.414.s1.nabble.com/quantlib-Handle-compile-error-tp7722p7726.html

On Mon, 2010-05-24 at 09:20 +0100, Simon Courtenage wrote:
> On the first point, it is a good idea not to use shared_ptr
> temporaries in function calls - this page
> http://www.boost.org/doc/libs/1_43_0/libs/smart_ptr/shared_ptr.htm
> explain why (see the section on "Best Practices") - the memory leak
> would only really occur where there are two or more arguments and the
> evaluation of one arg could potentially lead to an exception being
> thrown, but it's still a good idea to avoid this coding practice.

Yes, I'd seen the page, but thought it didn't apply here.  I see your
point about setting a bad example, though.  Patches anyone?

Luigi


--

Father's got the sack from the water-works
For smoking of his old cherry-briar;
Father's got the sack from the water-works
'Cos he might set the water-works on fire.



------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users