Fix integer.hpp so a compiler error is generated when the number of bits requested is greater than the max available.

Added new tests to catch this case.

[SVN r78307]
This commit is contained in:
John Maddock
2012-05-02 17:10:20 +00:00
parent 1898e66238
commit 90f779a9a3
8 changed files with 71 additions and 13 deletions
+6
View File
@@ -22,4 +22,10 @@ test-suite integer
[ compile static_log2_include_test.cpp ]
[ compile static_min_max_include_test.cpp ]
[ compile integer_fwd_include_test.cpp ]
[ compile-fail fail_int_exact.cpp ]
[ compile-fail fail_int_fast.cpp ]
[ compile-fail fail_int_least.cpp ]
[ compile-fail fail_uint_exact.cpp ]
[ compile-fail fail_uint_fast.cpp ]
[ compile-fail fail_uint_least.cpp ]
;