CPlusPlusThings/english/basic_content/explicit/README.md
2020-07-19 16:02:03 +08:00

436 B
Raw Permalink Blame History

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