From c51218511551a0376272e2ca6f1cc2369b32b613 Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Sat, 15 Dec 2018 17:11:16 +0000 Subject: [PATCH] pclass: Second attempt to fix BitInteger casters on CI --- include/ki/pclass/Casters.h | 54 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/include/ki/pclass/Casters.h b/include/ki/pclass/Casters.h index d171ad3..543c6c0 100644 --- a/include/ki/pclass/Casters.h +++ b/include/ki/pclass/Casters.h @@ -12,33 +12,6 @@ namespace pclass { namespace detail { - /** - * A utility to call ValueCaster::declare with - * bi and bui as the destination type. - * - * N is automatically decremented until it reaches 0. - */ - template - struct bit_integer_declarer - { - static void declare() - { - bit_integer_declarer::declare(); - ValueCaster::declare>(); - ValueCaster::declare>(); - } - }; - - /** - * Specialization for bit_integer_declarer. - * Stop decrementing N when it reaches 0. - */ - template - struct bit_integer_declarer - { - static void declare() {} - }; - /** * Determines whether a type can be assigned to a * nlohmann::json object. @@ -202,6 +175,33 @@ namespace detail } }; + /** + * A utility to call ValueCaster::declare with + * bi and bui as the destination type. + * + * N is automatically decremented until it reaches 0. + */ + template + struct bit_integer_declarer + { + static void declare() + { + bit_integer_declarer::declare(); + ValueCaster::declare>(); + ValueCaster::declare>(); + } + }; + + /** + * Specialization for bit_integer_declarer. + * Stop decrementing N when it reaches 0. + */ + template + struct bit_integer_declarer + { + static void declare() {} + }; + /** * Utility class used by TypeSystem to declare casters for each * primitive type.