0

こんにちは、テンプレート クラスとして宣言するクラスを使用しようとして立ち往生しているため、テンプレートに関する私の知識は基本的なものです。

//this is my code
#include "templateClassImp.cpp"
clase aClass{
public:
aClass();//implementing in cpp file
private:
ATemplateClass<class EMode, char> mMenberVariable;/*<< Doenst like this!!!! error compiling*/
}

//--------------------------

//templateClassImp.cpp

template<class Emode, class element = char>
class templateClassImp{}

//私が達成したいのは、非テンプレート クラス内でそのクラスを使用することです。

4

2 に答える 2