DEV Community


Discussion on: Quick Introduction to using in C++

pgradot profile image
Pierre Gradot

Since C++20, using can also be used with enumerated types:

using Base::greet;

Did you mean sayHi() instead of greet()?

Bring a base class method

This is very useful to expose base class' constructors.

guptaaastha profile image
Aastha Gupta Author

Hey Pierre, thanks for pointing out, I fixed it. I hope the article was useful to you !
using is used in multiple use cases now (one of which you pointed in the article). I encourage you to read more here if you want to know more.