Re: Semantic does not correctly show PRIVATE/PROTECTED methods to a class of whom those private/protected methods belong

Eric Ludlam <[email protected]> Thu, 27 Nov 2014 20:35:04 -0500
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
On 11/27/2014 02:35 PM, David Engster wrote:
> Dixon Ryan writes:
>> So please revert any changes you applied because one needs to have the
>> class keyword!
>
> Yes, the C++03 standard indeed says this. However, when you
> forward-declare the class, like
>
>    class A;
>    class B
>    {
>       friend A;
>    };
>
> then this is unambiguous and most compilers will happily accept it. I
> think in C++11 this is also now "officially" allowed. I just checked and
> GCC accepts this since version 4.7 also for C++03. So I think Eric's
> patches are the right thing to do.

Thanks for checking on this David.

Eric

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk