.. | ||
explicit.cpp | ||
README.md |
Things about explicit
About Author:
- explicit When decorating a constructor, you can prevent implicit conversion and copy initialization
- explicit When modifying a conversion function, you can prevent implicit conversion, except for context conversion
Code :.explicit.cpp
Reference Link:
https://stackoverflow.com/questions/4600295/what-is-the-meaning-of-operator-bool-const