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.