DEV Community

Discussion on: Quick Introduction to using in C++

Collapse
 
pgradot profile image
Pierre Gradot

Since C++20, using can also be used with enumerated types: dev.to/pgradot/let-s-try-c-20-usin...

using Base::greet;

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

Bring a base class method

This is very useful to expose base class' constructors.

Collapse
 
guptaaastha profile image
Aastha Gupta

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.