Re: why g++ this not compile

2012-06-19 Thread Zbigniew Komarnicki
On Tuesday 19 of June 2012 18:40:53 you wrote: > There is a work a round (included for completeness). > > //instead of these 2 lines > > > e.C::A::out(); > > e.D::A::out(); > > //use the following (obvious work a round for the previous 2 line, though > it should be unnecessary) > // C c=e; >

Re: why g++ this not compile

2012-06-19 Thread Robert Baron
There is a work a round (included for completeness). On Tue, Jun 19, 2012 at 9:15 AM, Zbigniew Komarnicki wrote: > Hello > > Why this below program do not compile under g++. > What is the reason, that g++ do not compile ? > > //-- > // file: p

Re: why g++ this not compile

2012-06-19 Thread Mateusz Łukasik
On 19/06/12 15:15, Zbigniew Komarnicki wrote: Hello Why this below program do not compile under g++. What is the reason, that g++ do not compile ? //-- // file: problem.cpp #include using namespace std; class A { public: void out() { cout<<

why g++ this not compile

2012-06-19 Thread Zbigniew Komarnicki
Hello Why this below program do not compile under g++. What is the reason, that g++ do not compile ? //-- // file: problem.cpp #include using namespace std; class A { public: void out() { cout << "A" << endl; } }; class B: public A { public: v