Re: Semantic does not correctly show PRIVATE/PROTECTED methods to a class of whom those private/protected methods belong
"Dixon Ryan (ETAS/ESW6)" <[email protected]> Fri, 28 Nov 2014 10:45:41 +0000
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
Oh well, Thanks all. -----Original Message----- From: Eric Ludlam [mailto:[email protected]] Sent: 28 November 2014 01:35 To: David Engster; Dixon Ryan (ETAS/ESW6) Cc: [email protected]; [email protected] Subject: Re: [cedet-semantic] Semantic does not correctly show PRIVATE/PROTECTED methods to a class of whom those private/protected methods belong 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