Since copying a std::string object might be expensive changing the ret_b() method to
const std::string& Sam::ret_b() const
{
return b;
}
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: GNiewerth Search: Search took 0.03 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |