Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How would be awful in c++? It seems trivial to do, basic_string is already templated and distinct instantiations are not mutually compatible by default. In fact wstring, u8string, u16string, u32string exist today in the language simply as distinct instatiantions of basic_string. You can crate your own by picking a new char type. Algorithms can be and are, generic and work on any string type.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: