M
ManicQin
Hello all.
I've templated a simple class like the next:
template <class _T>
class base
{
public:
base(_T newVal):m_data(newVal){}
private:
_T m_data;
};
AFAIK if the cTor receives _t byVal I can pass him numbers and not
just variable
(feel free to correct me but that's the behavior of VS9... and it
sound reasonable)
I want to add another cTor that receives the arg byRef but than my
compiler
is having problems to deduce what cTor to use..
how can I work around it?
I've templated a simple class like the next:
template <class _T>
class base
{
public:
base(_T newVal):m_data(newVal){}
private:
_T m_data;
};
AFAIK if the cTor receives _t byVal I can pass him numbers and not
just variable
(feel free to correct me but that's the behavior of VS9... and it
sound reasonable)
I want to add another cTor that receives the arg byRef but than my
compiler
is having problems to deduce what cTor to use..
how can I work around it?