Login  Register

Re: shared_ptr in Error class

Posted by Kakhkhor Abdijalilov on Apr 10, 2011; 9:02am
URL: http://quantlib.414.s1.nabble.com/shared-ptr-in-Error-class-tp13384p13386.html

I think smart pointer is not needed, since exception objects should be
passed by reference. Following "less is more" principle the shared
pointer to string could be replaced by a plain string.
Regards,
Kakhkhor Abdijalilov.

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev