Quote:
Originally posted by Technocrat
This is what some one is suggesting:
...
Simply build up your own ideal string class by adding public methods that operate on the m_string member. You could provide an operator[], size(), empty(), subst(), trimLeft(), trimRight(), upper(), lower(), isalpha(), whatever you desire.
Yes, but most of those are already implemented by std::basic_string... why add another layer of function calls, or, more to the point, why spend all that time typing them out when you can simply derive from std::basic_string?