Nikita Kniazev
7771d20cc7
Fix MSVC C4127 warnings
2019-09-30 01:29:29 +03:00
Nikita Kniazev
92596fe02e
Fix extract_int test std::pow problems
2019-02-22 04:26:47 +03:00
Nikita Kniazev
4b1b710322
extract_int: Fixed underflow check for (MinOrMax % Base) == 0
2019-02-21 20:21:12 +03:00
Nikita Kniazev
7d3cf1da6d
Make extract_int respect std::numeric_limits<T>::digits10
2019-02-21 20:21:12 +03:00
Nikita Kniazev
5ea06d04bd
Refactor extract_int test
2019-02-21 02:40:31 +03:00
Nikita Kniazev
a36077efbd
X3.Tests: extract_int: Workaround GCC < 7 bug
...
[GCC prior to 7 version][1] does not implement [CWG 374][2] which is C++11.
[1]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480
[2]: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#374
2019-01-13 23:03:26 +03:00
Nikita Kniazev
65157bae07
extract_int: Custom integers support
...
It will allow to test `extract_int` properly.
Replacing `boost::integer_traits` with `std::numeric_limits` will not hurt
performance because even MSVC 9/GCC 4.1/Clang 3.0 folds `min`/`max` calls
to a constant at compile time and since C++11 they are even constexpr.
2019-01-13 01:12:09 +03:00