[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
return[ing] a smart pointer by const &.
From: |
ArbolOne |
Subject: |
return[ing] a smart pointer by const &. |
Date: |
Sat, 27 Feb 2010 05:17:40 -0800 (PST) |
User-agent: |
G2/1.0 |
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?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- return[ing] a smart pointer by const &.,
ArbolOne <=