Sobes.tech
Middle

modello <typename> struct Base { int i = 0; }; template <typename T> struct Deriv : Base<T> { void foo() { i = 1; // errore: 'i' non dichiarato in questo ambito } }; struct Foo : Deriv<Foo> { void bar() { i = 2; } };