Automatic scaling data type in C++?
<p>Is there a way to use a generic datatype in C++ that automatically scales to the type of number used? Like it only uses a short int if that's all the number needs to be stored, changes to a long long if you use a big number, etc?</p>
