Hello boys and girls!
My function returns a smart pointer as follows
const Onelib::MySmartPointer<Twolib::someMethod1>&
MyClass::someMethod2(){...}

This function works OK, however, someone told me that it was not a
wise idea to return a smart pointer by const &.
It was not possible to ask what was meant by the comment or what
better solution would be there. So, I am asking here. Any body?
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to