Sobes.tech
Middle

šablonas <typename> struct Base { int i = 0; }; template <typename T> struct Deriv : Base<T> { void foo() { i = 1; // klaida: 'i' nebuvo deklaruotas šiame apimtyje } }; struct Foo : Deriv<Foo> { void bar() { i = 2; } };