What is the actual effect of the following construct:
class Base { /* ... */ };
template<class T>
class Derived : public T { /* ... */ };
int main() {
Derived<const Base> d;
// ...
}
Does the Derived
class only have access to the const
-part of the interface of Base
? My first tests indicate that there's actually no effect at all. Why?
Thanks!