Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1313

Comment by HolyBlackCat on A class has many public functions; after moving some to protected, how to update tests?

$
0
0
You don't have to write new functions in the derived class. You can use public: using Foo::some_func; to make the inherited protected functions public. Or alternatively consider the good ol' -fno-access-control (or #define protected public if your compiler doesn't have that flag).

Viewing all articles
Browse latest Browse all 1313

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>