[Geany-Devel] C++11 Bug discussion (transferred from bug tracker)
Lex Trotman
elextr at gmail.com
Tue Oct 23 08:19:05 UTC 2012
For those of use who are pointer to member syntax challenged (including
me), example G of the attachment to the bug:
class G{
public:
class G1{
int a;
int b;
}c;
int d;
G(int dd):d(dd){};
};
const G g;
G::G1 G::* gg = &G::c;
(nobody least of all me spotted the mistake that the last character should
be c :)
The last line is read as, gg is a pointer to a member of class G and the
type of that member is class G1 which is a member of class G and gg is
initialised to a pointer to member c of an object of class G.
Cheers
Lex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/devel/attachments/20121023/df37142e/attachment.html>
More information about the Devel
mailing list