pabloliva87

Ej4Chapter20C++

Aug 19th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. template<class T = int> struct char_traits : std::char_traits<char>
  4. {
  5.     typedef T char_type;
  6. };
  7.  
  8. int main(void)
  9. {
  10.     std::basic_string<int, char_traits<int>> s1;
  11.     printf("%i\n", *(s1.c_str()));
  12.     return EXIT_SUCCESS;
  13. }
Add Comment
Please, Sign In to add comment