Item 21: Overload to avoid implicit type conversions.(More Effective C++)
摘要:        
Overloading to avoid temporaries isn't limited to operator functions. For example, in most programs, you'll want to allow a string object everywhere a char* is acceptable, and vice versa. Similarly, if you're using a numerical class like complex (see Item 35), you'll want types like     阅读全文
        posted @ 2012-03-09 15:34 Ray Z 阅读(205) 评论(0) 推荐(0)
                    
                
浙公网安备 33010602011771号