L LDD Jul 22, 2005 #1 How do I declare a class as a friend that can be used outside the local assembly? LDD
M Marina Jul 22, 2005 #2 If you want to be 'friend', wouldn't that by definition mean it can only be used in the assembly it is in? If you want it to be used both inside and outside the assembly, it should be public.
If you want to be 'friend', wouldn't that by definition mean it can only be used in the assembly it is in? If you want it to be used both inside and outside the assembly, it should be public.
C Chris Jul 22, 2005 #3 Marina said: If you want to be 'friend', wouldn't that by definition mean it can only be used in the assembly it is in? If you want it to be used both inside and outside the assembly, it should be public. Click to expand... You could do it as protected if you want it to be only accessed by derived members of the same class... otherwise public does have to be used to get it available outside the assembly. Chris
Marina said: If you want to be 'friend', wouldn't that by definition mean it can only be used in the assembly it is in? If you want it to be used both inside and outside the assembly, it should be public. Click to expand... You could do it as protected if you want it to be only accessed by derived members of the same class... otherwise public does have to be used to get it available outside the assembly. Chris