Partial specialization with type nested in a templated class
I'm playing with templates and partial specialization, but there is one specialization I don't know how to write... I'll simplify code to make it easier to read. Let's condiser template <typename T> class x { ... }; Usually, I can specialize like this : class x<a_type> { ... }; Also works with templates types : template <typename T> class x<std::vector<T>> { ... } Now I would like to make the specialization for a type nested in a templated class: template <typename T> class y { struct nested_type { y a_member; }; ... }; // Here comes the specialization template <typename T> class x<y<T>: