Code:
class xxx
{
public:
template<class T>
T void func(int a)
{
/* Here depending upon some-cases, i ll return
* either int, float, std::string, etc...
* How to do it, i am getting undefined refernce
* to func
*/
}
};
Comment