template <typename T>
class MyTemplate {
private:
T thing;
int num;
public:
MyTemplate(T t, int i) : thing(t), num (i) {}
};
I would like to have a container class which will have a member of type MyTemplate<T>. Is this just a matter of making the container class templated as well:
@dhayden - i've already explained the problem. what is the best way to design a container for a templated class? honestly, why do people get so pissy about things. say something nice or don't say anything at all.