CPlusPlusThings/english/basic_content/explicit
2023-03-30 22:53:48 +08:00
..
explicit.cpp english 2020-07-19 10:38:38 +08:00
README.md Update README.md 2020-07-19 16:02:03 +08:00

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