Commit 0fb6bbf5 by Martin v. Löwis

extend.texi (Bound member functions): Document unbound pmf conversion.

	* extend.texi (Bound member functions): Document unbound pmf
	conversion.

From-SVN: r29558
parent 7936455a
......@@ -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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment