Ray's playground

 

2011年4月7日

Item 45: Use member function templates to accept "all compatible types."(Effective C++)

摘要: Use member function templates to generate functions that accept all compatible types. If you declare member templates for generalized copy construction or generalized assignment, you'll still need to declare the normal copy constructor and copy assignment operator, too. 阅读全文

posted @ 2011-04-07 18:27 Ray Z 阅读(164) 评论(0) 推荐(0) 编辑

导航