I'm trying to specialize a template class inside another class but the compiler won't let me. The code works outside of class Foo but not inside and I want struct Bla to be private to class Foo.
class Foo {
template<typename ... Ts> struct Bla;
template<> struct Bla<> { static constexpr int x = 1; };
};
error: explicit specialization in non-namespace scope 'class Foo'