2013年5月9日

Effective C++ 读书笔记之Part1.Accustoming Yourself to C++

摘要: 1、View C++ as a federation of languages C++的四个次语言: 1)C 2)Object-Oriented C++ 3)Template C++ 4)STL 2、Prefer consts, enums, and inlines ... 阅读全文

posted @ 2013-05-09 16:04 爱你一万年123 阅读(137) 评论(0) 推荐(0)

C++知识点---explicit、TR1、Boost

摘要: 关键字:explicit 1、除非有明显的理由想要定义隐式转换,否则,单形参构造函数应该为explicit。 将构造函数设置为explicit可以避免错误,并且当转换有用时。用户可以显式地构造对象。 2、explicit关键字只能用于类内部的构造函数声明上。在类的定义体外部所做的定义上不再 重复... 阅读全文

posted @ 2013-05-09 11:16 爱你一万年123 阅读(210) 评论(0) 推荐(0)

导航