projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7936455
)
extend.texi (Bound member functions): Document unbound pmf conversion.
author
Martin v. Löwis
<loewis@gcc.gnu.org>
Tue, 21 Sep 1999 19:34:59 +0000
(19:34 +0000)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/gcc/extend.texi
b/gcc/extend.texi
index 4ec451d3373218bb034cf1b94f3b8b04fad02fdb..82e955993d8c004a2bde0d8cc0f39cc74c8be32c 100644
(file)
--- 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.