0

I have a template class as follows.

template <typename KeyType>
class Manager
{
  Manager(std::string name );
};

template<typename KeyType>
Manager<keyType>::Manager(std::string name)
{
  //Do something;
}

When I tried to create an object of this class, I am getting unresolved external symbol error. Anybody tell me what is the problem with my code.

std::string name;
Manager<std::string> manager(name);
Potatoswatter
  • 134,909
  • 25
  • 265
  • 421
Aneesh Narayanan
  • 3,220
  • 11
  • 31
  • 48

0 Answers0