Given a class with a templated member:
Code:
template<typename T> class tmpl_class {};
class some_class
{
tmpl_class<T>& tmpl_member;
public:
template<typename T>
some_class( tmpl_class<T>& oc )
: tmpl_member(oc)
{}
};
I can't tell if this is valid code (no compiler atm). I'm sure there has to be a way to have a non-template class have templated members, but I haven't figured it out yet. In fact, I just came up with the idea above right now, even though I've been trying to figure this out for a week. Sorry if it's offensively incorrect.