Talk:cpp/language/derived class
From cppreference.com
It says "private members of the base are never accessible unless [...] using-declared", but this doesn't work:
class parent
{
int a;
};
struct child : protected parent
{
using parent::a;
};
- you're right, that appears to be an error, corrected (at least cpp/language/using_declaration#In_class_definition had it right) --Cubbi (talk) 11:48, 7 November 2015 (PST)