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

TICK_REQUIRES with parameter pack template #18

Open
IkoLogs opened this issue Jan 15, 2018 · 0 comments
Open

TICK_REQUIRES with parameter pack template #18

IkoLogs opened this issue Jan 15, 2018 · 0 comments

Comments

@IkoLogs
Copy link

IkoLogs commented Jan 15, 2018

c++ prefers paramter packs as last arguement

template<class... T_MyPack, TICK_REQUIRES(MyPackConstriants<T_MyPack...>())>
class SomeClass
{

}

How do i declare class that takes pack, and uses TICK_REQUIRES in class header to help documnnet constraints used closer to class header.

Currently had to resolve using static_assert(MyPackConstriants<>() ) inside the class.

So again the problem generally is doing TICK with variable argument templates

cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant