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

16 lines
436 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Things about explicit
## About Author
![](../img/wechat.jpg)
- 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](./explicit.cpp)
Reference Link
> https://stackoverflow.com/questions/4600295/what-is-the-meaning-of-operator-bool-const