Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
自分自身に答えます。
それは… テストで資格を忘れてしまった..
template <typename T> class A { public: Obj<T> *pObj; public: A(Obj<T>* pO) : pObj(pO) {} void doSomethingWithObj() { pObj->print(); } static Obj<T> X; }; template<typename T> Obj<T> Obj<T>::X(1.0);