How about using the compiler constants:
Code:#include <climits> void test() { double value = static_cast<double>(INT_MAX) + 1; }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Threaded View
|
Click Here to Expand Forum to Full Width |