I don't understand att all inheritance with templates..
template <typename T>
class Mere
{
protected:
Mere();
};
class Fille2 : public Mere<int>
{
protected:
Fille2(){
Mere();
}
};
int main(int argc, char** argv) {
return 0;
}
Why do I have this error?
main.cpp:22:5: error: 'Mere<T>::Mere() [with T = int]' is protected
Mere();
And all works when I put "Mere()" in public? I can't have "protected" functions for my class "Mere"? Why?