我有这样的东西
template <class T>
class Outer {
public: class Inner;
static Inner* x;
//...
class Inner {
//...
};
};
// Not working
template <class T>
Outer<T>::Inner* Outer<T>::x = NULL;
我得到的错误说::16: error: expected constructor, destructor, or type conversion before ‘*’ token