Hi,
I wondered if it was possible to declare the friends of class but out of it?
Like this:
You have created class:
class myclass{
int x;
public:
bla bla bla
};
And instead of this:
class myclass{
int x;
public:
bla bla bla
friend class someclass;
};
If it possible to do something like this:
class myclass{
int x;
public:
bla bla bla
};
//this is out of class
myclass::friend class someclass;
I know the last line is piece of crap, but is there any way to do something like that?
I need this because I started working in Borland 6 and I created class but can't use it since it can't recognize objects like Memo1.
Thanks!