![]() |
#2
linsua2008-01-25 09:46
|
class screen
{ public :
typedef std::string::size_type index;
index get_cursor() const;
};
inline screen::index screen::get_cursor() const
{ return cursor;
}
为什么会多出红色部分, 在外部的函数定义上指定inline ,应该也是 inline + 类名::函数名吧?