On Thu, 22 Dec 2005 20:27:38 -0800,
he**************@gmail.com wrote:
Hi,
I'm currently writting an application and I was wondering if there was
a way to declare a class friend of another during runtime?
Could you explain what that means? Friendship (in the C++ sense) is about
being able to grant access rights during compilation to allow access to
private and/or protected elements of a class. If the class isn't a friend
class at compile time, you can't compile the code, which means there *is
no code* accessing the class that you can even grant access to at runtime.
So even if you could somehow declare the class a friend, what does it
practically gain you, since you can't go back and compile the code you
need?
- Jay