I have a simple template method that looks like
I thought maybe RTTI would work, but that deals with classes with virtual methods. Since T is most likely going to be an int or double, is there any built in C++ way to print out the value of T.
Code:
template < typename T> void WhatEver( void) { T t; // How to print with cout the T value (not the t value)? }
Comment