C++ class with template member variable
You got very close. I added a few bits because they’re handy class ParameterBase { public: virtual ~ParameterBase() {} template<class T> const T& get() const; //to be implimented after Parameter template<class T, class U> void setValue(const U& rhs); //to be implimented after Parameter }; template <typename T> class Parameter : public ParameterBase { public: Parameter(const … Read more