extend.texi (Bound member functions): Document unbound pmf conversion.
authorMartin v. Löwis <loewis@gcc.gnu.org>
Tue, 21 Sep 1999 19:34:59 +0000 (19:34 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Tue, 21 Sep 1999 19:34:59 +0000 (19:34 +0000)
* extend.texi (Bound member functions): Document unbound pmf
conversion.

From-SVN: r29558

gcc/extend.texi

index 4ec451d..82e9559 100644 (file)
@@ -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.