Tick icon indicating copy to clipboard operation
Tick copied to clipboard

TICK_REQUIRES with parameter pack template

Open IkoLogs opened this issue 8 years ago • 0 comments

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

IkoLogs avatar Jan 15 '18 06:01 IkoLogs