typedef 和 inline 问题
class screen { public :
typedef std::string::size_type index;
index get_cursor() const;
};
inline screen::index screen::get_cursor() const
{ return cursor;
}
为什么会多出红色部分, 在外部的函数定义上指定inline ,应该也是 inline + 类名::函数名吧?
2008-01-25 09:09
2008-01-25 10:04