• Advertisement
Sign in to follow this  

[c++] overloadad func from base class

This topic is 2299 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
They're not in the same scope, b.A::Test(1); would work.

putting a using A::Test in the second class would also work.


class B : public A {
public:
using A::Test;
void Test() {}
};

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement