I want to extend std::string, but not for the reason you might think.

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-03-18T20:17:43Z Indexed on 2010/03/18 20:21 UTC
Read the original article Hit count: 106

Filed under:
|
|

I have a method that effectively takes a string. However, there is a very limited subset of strings I want to use. I was thinking of typedef'ing std::string as some class, and call the functions explicit. I'm not sure that would work, however. Ideas?

© Stack Overflow or respective owner

Related posts about c++

Related posts about explicit