Hi!
Victor Bazarov schrieb:
> Try actually exercising the friendship next time. See my other
> post for a program that does that.
I'm sorry. I missed your point in my last post. Now I got it. I used the
following program:
class B
{
protected:
B() {}
~B() {}
};
class A
{
friend B::B();
public:
A() {}
~A() {}
};
And I happen not to have any compiler which accepts it. I tried:
MinGW 3.4.2
MSVC 8 Express
linuc gcc 4.1.2
So, even gcc 4.1.2 rejects it o_O
But I tried the EDG front end on the Dinkumware website. And tried
Comeau (same front end, isn't it?). Both accept it. And on the
Dinkumware site I ran MSVC 6 which also accepts the code. So Microsoft
didn't improve on this issue.
Frank