Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FireFlyForLife opened this issue Mar 17, 2024 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@FireFlyForLife
Copy link
Owner

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 FireFlyForLife added the enhancement New feature or request label Mar 17, 2024
@FireFlyForLife FireFlyForLife added this to the Release milestone Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant