I try
template<class T>
struct getData
{
boost::shared_ptr<T> operator()()
{
return boost::shared_ptr<T>(new T());
}
};
struct getVector : public getData<std::vector<int>>{};
I want to spesify () return via inheritence… but it seems to not return desired type. What do I do wrong?
Don’t you need the return type to be