Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- template<class T = int> struct char_traits : std::char_traits<char>
- {
- typedef T char_type;
- };
- int main(void)
- {
- std::basic_string<int, char_traits<int>> s1;
- printf("%i\n", *(s1.c_str()));
- return EXIT_SUCCESS;
- }
Add Comment
Please, Sign In to add comment