Work around warnings in char.cpp and integral_c.cpp when char is unsigned. Fixes #50.

This commit is contained in:
Peter Dimov
2025-01-02 16:43:59 +02:00
parent bace27426e
commit d223d3cd60
2 changed files with 13 additions and 3 deletions
+5
View File
@@ -13,12 +13,17 @@
#include <boost/mpl/char.hpp>
#include <boost/preprocessor/repeat.hpp>
#include <climits>
#include "integral_wrapper_test.hpp"
MPL_TEST_CASE()
{
#if CHAR_MAX > 0
# define WRAPPER(T, i) char_<static_cast<char>(i)>
#else
# define WRAPPER(T, i) char_<i>
#endif
BOOST_PP_REPEAT(10, INTEGRAL_WRAPPER_TEST, char)
}