Consider the following class, with the inner struct Y being used as a type, eg. in templates, later on:
Y
template class X{ templat
How about this approach - http://sergey-miryanov.blogspot.com/2009/03/template-class-overriding.html? (sorry for russian)