I have a code like this:
template<typename T> class Foo
{
struct Some_struct
{
T object;
Some_struct* next;
};
public:
Some_struct* function();
};
template<typename T> Some_struct* Foo<T>::function()
{
return pointer_to_Some_struct;
}
What should the correct definition look like?
source
share