Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SIZE :public TypeInfo<T> {
- public:
- SIZE(T value):TypeInfo<T>(value) {};
- void TYPEID() {
- cout<<"Typename:"<< typeid(value);
- }
- };
- int main() {
- SIZE <double> a(3123);
- cout<<a.value;
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement