From ceeda2e337077b2edaf1af09cc4df2c30e8205a1 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 15 Apr 2014 20:05:17 -0700 Subject: Wouldn't it be nice to have some integers too? --- src/compat/alg.hpp | 4 +++- src/compat/iter_test.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src/compat') diff --git a/src/compat/alg.hpp b/src/compat/alg.hpp index adf3f3f..f9ed8d2 100644 --- a/src/compat/alg.hpp +++ b/src/compat/alg.hpp @@ -21,7 +21,8 @@ # include "../sanity.hpp" -# include +# if 0 +# include template @@ -35,5 +36,6 @@ typename std::common_type::type max(A a, B b) { return b < a ? a : b; } +# endif #endif // TMWA_COMPAT_ALG_HPP diff --git a/src/compat/iter_test.cpp b/src/compat/iter_test.cpp index a07cb0f..99b2e68 100644 --- a/src/compat/iter_test.cpp +++ b/src/compat/iter_test.cpp @@ -20,6 +20,8 @@ #include +#include "../ints/udl.hpp" + #include "../strings/xstring.hpp" #include "../poison.hpp" @@ -33,7 +35,7 @@ TEST(iterpair, strings) TEST(iterpair, signed8) { - IteratorPair> pair = value_range(int8_t(-128), int8_t(127)); + IteratorPair> pair = value_range(-128_n8, +127_p8); int8_t arr[255] = { -128, -127, -126, -125, -124, -123, -122, -121, -120, @@ -68,7 +70,7 @@ TEST(iterpair, signed8) TEST(iterpair, unsigned8) { - IteratorPair> pair = value_range(uint8_t(0), uint8_t(255)); + IteratorPair> pair = value_range(0_u8, 255_u8); uint8_t arr[255] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -- cgit v1.2.3-70-g09d2