B
benben
Say I have a class template:
template <typename T>
class myclass
{
public:
template <typename U>
myclass(void )
{
U u;
// do something with u
}
};
My question is how to construct a myclass<int> object using the
myclass<int>::myclass<float> constructor?
Or is it really a very silly question?
Regards,
Ben
template <typename T>
class myclass
{
public:
template <typename U>
myclass(void )
{
U u;
// do something with u
}
};
My question is how to construct a myclass<int> object using the
myclass<int>::myclass<float> constructor?
Or is it really a very silly question?
Regards,
Ben