摘要: Item 24 explains why only non-member functions are eligible for implicit type conversions on all arguments, and it uses as an example the operator* fu 阅读全文
posted @ 2022-03-01 18:30 MyCPlusPlus 阅读(52) 评论(0) 推荐(0) 编辑
摘要: One of the things that real pointers do well is support implicit conversions. Derived class pointers implicitly convert into base class pointers, poin 阅读全文
posted @ 2022-03-01 16:26 MyCPlusPlus 阅读(58) 评论(0) 推荐(0) 编辑
摘要: For example, suppose you'd like to write a template for fixed-size square matrices that, among other things, support matrix inversion. template<typena 阅读全文
posted @ 2022-03-01 11:17 MyCPlusPlus 阅读(41) 评论(0) 推荐(0) 编辑