macro与inline的区别 What is the difference between macro and inline?

  1. macro不执行任何类型检查,而inline会执行类型检查
  2. macro不能访问类的成员函数,而inline可以作为类的成员函数

 

  1. Macro does not perform any type checking, while inline functions are strict on type checking.
  2. Macro has no access to member functions of a class, while member functions can be declared inline.

 

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/donhao/article/details/5647386
文章标签: access class
个人分类: C++
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭