有没有在任何情况下使用 -> 运算符和引用变量/对象?
typedef ABC::Derived<Tmplt> THandle;
THandle m_oNew;
m_oNew->m_u16GetState(); // This is the function call. Here "->" is used.
这是“派生”类和函数定义:
template<class T>
class Derived;
class AnotherClass
{
friend class Derived;
inline AnimState m_u16GetState () const
{
return m_u16State;
}
};