Fix constness

This commit is contained in:
Victor Zverovich
2024-01-14 06:44:38 -08:00
parent 362b40c1a3
commit d70729215f
11 changed files with 67 additions and 51 deletions
+7 -3
View File
@@ -310,10 +310,14 @@ TEST(printf_test, dynamic_precision) {
}
}
template <typename T> struct make_signed { using type = T; };
template <typename T> struct make_signed {
using type = T;
};
#define SPECIALIZE_MAKE_SIGNED(T, S) \
template <> struct make_signed<T> { using type = S; }
#define SPECIALIZE_MAKE_SIGNED(T, S) \
template <> struct make_signed<T> { \
using type = S; \
}
SPECIALIZE_MAKE_SIGNED(char, signed char);
SPECIALIZE_MAKE_SIGNED(unsigned char, signed char);