From: Martin v. Löwis Date: Tue, 21 Sep 1999 19:34:59 +0000 (+0000) Subject: extend.texi (Bound member functions): Document unbound pmf conversion. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0fb6bbf56e2261d41de209375829d8c2b8456f6c;p=gcc.git extend.texi (Bound member functions): Document unbound pmf conversion. * extend.texi (Bound member functions): Document unbound pmf conversion. From-SVN: r29558 --- diff --git a/gcc/extend.texi b/gcc/extend.texi index 4ec451d3373..82e955993d8 100644 --- a/gcc/extend.texi +++ b/gcc/extend.texi @@ -3749,5 +3749,13 @@ typedef int (*fptr)(A *); fptr p = (fptr)(a.*fp); @end example +For PMF constants (i.e. expressions of the form @samp{&Klasse::Member}), +no object is needed to obtain the address of the function. They can be +converted to function pointers directly: + +@example +fptr p1 = (fptr)(&A::foo); +@end example + You must specify @samp{-Wno-pmf-conversions} to use this extension.