
1 May
2009
1 May
'09
9:42 a.m.
unicode::string definition starts:
namespace unicode { typedef std::size_t code_point; class string : public std::basic_string<code_point> {
Is "std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >" not the same as "unicode::string"?
No.
If not why is it not?
Because unicode::string is a descendant of std::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >, so these are 2 distinct types. If you want just to alias an existing type, use "typedef" instead of inheritance.