Skip to content

Add precise integer type support for non-type template parameters #14

@FireFlyForLife

Description

@FireFlyForLife

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions