NeatReflection
NeatReflection copied to clipboard
Add precise integer type support for non-type template parameters
Take the example:
template<size_t I>
class C
{};
Will currently just generate:
add_type(Type::create<C<3>>("C<3>", get_id<C<3>>(),
{ },
{ },
{ },
{ },
{ TemplateArgument{ Neat::Any{ 3 } }, }
));
And because the default integer type in C++ is int
. The any will store a value of int
instead of a value of size_t
as is declared by template.