次の構造の実際の効果は何ですか:
class Base { /* ... */ };
template<class T>
class Derived : public T { /* ... */ };
int main() {
Derived<const Base> d;
// ...
}
クラスは のインターフェースの -partのみDerived
にアクセスできますか? 私の最初のテストでは、実際にはまったく効果がないことが示されています。なんで?const
Base
ありがとう!