Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. class SIZE :public TypeInfo<T> {
  2. public:
  3.     SIZE(T value):TypeInfo<T>(value) {};
  4.     void TYPEID() {
  5.         cout<<"Typename:"<< typeid(value);
  6.     }
  7. };
  8.  
  9. int main() {
  10.     SIZE <double> a(3123);
  11.     cout<<a.value;
  12.     return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement