Home

Frank Birbacher wrote:
> Barry schrieb:
>> Well, my compiler(msvc8.0) hates the program again
>
> I tried msvc8 express on this:
>
> class B
> {
> friend class A;
^^^^^^^^^^^^^^^
Drop this, it's unnecessary.

> protected:
> B() {}
> ~B() {}
> };
>
> class A
> {
> friend B::B();
> public:
> A() {}
> ~A() {}
> };
>
> which compiles cleanly.

Try actually exercising the friendship next time. See my other
post for a program that does that.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask

previous
next

Re: subprocess -popen - reading stdout from child - hangs
Re: Python 3.0 migration plans?
Re: Threaded Design Question
PYTHON PROGRAMMING HELP PLSSS !!URGENT
Re: beginner, idiomatic python
Niechciane i Zapomniane
Rodzic Po Ludzku
Fundacja Avalon
Fundacja Sloneczko
Fundacja Iskierka