prog.cpp: In function ‘void bar(const T&, std::index_sequence<ARGS ...>&)’:
prog.cpp:12:23: error: expected ‘)’ before ‘&&’ token
if(bar<ARGS>(param) && ...)
^~
prog.cpp:12:29: error: parameter packs not expanded with ‘...’:
if(bar<ARGS>(param) && ...)
^
prog.cpp:12:29: note: ‘ARGS’
prog.cpp: In function ‘int main()’:
prog.cpp:25:37: error: ‘size’ is not a member of ‘std’
bar(foo, std::make_index_sequence<std::size(decltype(foo)())>());
^~~
prog.cpp:25:37: error: ‘size’ is not a member of ‘std’
prog.cpp:25:63: error: template argument 1 is invalid
bar(foo, std::make_index_sequence<std::size(decltype(foo)())>());
^