Why can I prevent implicit conversions for primitives but not user-defined types?

前端 未结 3 1661
轮回少年
轮回少年 2021-01-25 18:16

The High Integrity C++ Standards suggest that rvalue arguments to functions can be deleted thus preventing implicit conversions.

http://www.codingstandard.com/rule/8-3-4

3条回答
提交回复
热议问题