Ray's playground

 

2011年6月11日

Item 7:Never overload &&, ||, or ,.(More Effective C++)

摘要: The purpose of operator overloading is to make programs easier to read, write, and understand, not to dazzle others with your knowledge that comma is an operator. If you don't have a good reason for overloading an operator, don't overload it. In the case of &&, ||, and ,, it's di 阅读全文

posted @ 2011-06-11 11:16 Ray Z 阅读(162) 评论(0) 推荐(0) 编辑

导航