I\'m writing C++ code in an environment in which I don\'t have access to the C++ standard library, specifically not to std::numeric_limits. Suppose I want to implem
std::numeric_limits
This disarmingly direct way.
T allOnes; memset(&allOnes, ~0, sizeof(T));