i think you also have to put inline in class def
所在版块:求学狮城 发贴时间:2003-02-21 12:19  评分:

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
class Datalist {
..............
inline int getMonth() const;
..............
}

but normally if I have simple function and want to make it inline.
I prefer write mathod body in class def
class Datalist {
..............
inline int getMonth() const {return month;}
..............
}
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
c++ beginner 的菜鸟问题 如今   (514 bytes , 618reads )
i think you also have to put inline in class def 吴永铮   (279 bytes , 218reads )
Why need do this? Yup   (157 bytes , 479reads )
let me try with GCC and others. hash   (0 bytes , 167reads )
i even got problem when i try to compile 和尚庙的主持   (55 bytes , 165reads )
The use of inline, __inline, __forceinline Yup   (2160 bytes , 379reads )