>>I would assume that the "transfer by value" is normally a good thing BUT NOT IN A CONSTRUCTOR. I
Transfer by value, is normally a bad thing, unless the value is of int size or less.
Why do you think transfer by value is normally good?
I still don't understand what you're trying to accomplish with your constructor.
Does your SString class derive from std::string?
Main Topics
Browse All Topics





by: rstaveleyPosted on 2003-09-13 at 06:12:32ID: 9352628
I may not be completely with you, Alf, but it sounds like you are depending on a shallow copy because you've not supplied a copy constructor. The shallow copy is dodgy if the object being copied has pointers which are deleted by the class's destructor.