Is it possible to specialize this template declaration:
template <class TYPE, class... ARGS> TYPE Foo(ARGS... args) {
static_assert(false);
}
I tried a few things such as:
template <> int Foo<int>(float args) {
return 42;
}
...but I always hit the static assert when I try to use it as such:
auto value = Foo<int>(1.5f);
What's the correct syntax?