NeatReflection icon indicating copy to clipboard operation
NeatReflection copied to clipboard

Add precise integer type support for non-type template parameters

Open FireFlyForLife opened this issue 11 months ago • 0 comments

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.

FireFlyForLife avatar Mar 17 '24 21:03 FireFlyForLife