Chinaunix首页 | 论坛 | 博客
  • 博客访问: 174355
  • 博文数量: 69
  • 博客积分: 2627
  • 博客等级: 少校
  • 技术积分: 715
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-24 22:37
文章分类

全部博文(69)

文章存档

2017年(3)

2014年(1)

2013年(4)

2012年(6)

2011年(21)

2010年(15)

2009年(19)

我的朋友

分类: C/C++

2009-04-29 16:14:07

C++ compilers disallow member function calls for const objects unless the member functions themselves are also declared const.

C++编译器对于const对象不允许调用它的成员函数,除非成员函数也被声明为const.


This is true even for get member functions that do not modify the object.

即使对不修改对象的get系列成员函数也是这样.


In addition, the compiler does not allow member functions declared const to modify the object.

另外,编译器不允许声明为const的函数修改对象.


阅读(676) | 评论(0) | 转发(0) |
0

上一篇:Linux摄像头编程(转)

下一篇:STL容器

给主人留下些什么吧!~~