separating implementation

I can't separate my implementation;

I have
1
2
3
4
5
6
7
8
9
10
template <typename Object>
class list
{
public:
    struct node
    {
      .......
    };
node * del(node);
};

and but i can't separate del function to .cpp file
i wrote something like that but it does not work
1
2
3
4
5
template <typename Object>
node * list<Object>::del(node * xy)
{
.....
}
I looked these links but i think i still have a problem. And i can't make my code correct.
Most compilers don't support the feature that allow template things to be defined in external source files, you'll have to move the minplementation of your functions in the header
But i think gcc supports?
So i have one chance, but i can not use it.
I writed
class list<Object>::node * list<Object>::del(node * xy)
instead of
node * list<Object>::del(node * xy)
then it worked.
Topic archived. No new replies allowed.