From 3343b51a39ff224160e75276c219478b54ad9d32 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Thu, 22 Apr 2021 03:09:31 +0200 Subject: [PATCH] Simplify code --- include/duckhandy/implem/int_conv.hpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/duckhandy/implem/int_conv.hpp b/include/duckhandy/implem/int_conv.hpp index 27a2386..db9aa20 100644 --- a/include/duckhandy/implem/int_conv.hpp +++ b/include/duckhandy/implem/int_conv.hpp @@ -173,7 +173,7 @@ namespace dhandy { return (negate ? -n : n); } - template + template struct AryConversion { template static I from_ary (const C* beg, const C* end) { @@ -194,16 +194,13 @@ namespace dhandy { } }; - template ::value and not std::is_same::value and sizeof(I) <= sizeof(uint32_t)>::type> - struct SelectIForSSEToInt; - template - struct AryConversion, Base, Tr> { + struct AryConversion::value and not std::is_same::value and sizeof(I) <= sizeof(uint32_t)>::type> { template static I from_ary (C* beg, C* end) { return to_integer_sse(beg, end - beg); } }; template - struct AryConversion { + struct AryConversion { template static bool from_ary (C* beg, C* end) { if (end == beg) return false;