From 8419c47a70e0679067953556499450d6662cd879 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sun, 22 Jul 2018 00:42:02 +0100 Subject: [PATCH] Base 36 should also be unsigned --- include/duckhandy/int_conv.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/duckhandy/int_conv.hpp b/include/duckhandy/int_conv.hpp index a975341..3498ccf 100644 --- a/include/duckhandy/int_conv.hpp +++ b/include/duckhandy/int_conv.hpp @@ -42,7 +42,7 @@ namespace dhandy { template struct int_info { static_assert(Base > 1, "Invalid base"); - static const constexpr bool always_unsigned = (Base == 16 or Base == 2); + static const constexpr bool always_unsigned = (Base == 16 or Base == 2 or Base == 36); static const constexpr bool is_signed = std::numeric_limits::is_signed and not always_unsigned; static const constexpr std::size_t max_len = max_digit_count, I>::type, Base> + is_signed; };