diff options
author | loewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-21 19:34:59 +0000 |
---|---|---|
committer | loewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-21 19:34:59 +0000 |
commit | 96149f2d49006c580aa97b97435c0d38d60ab438 (patch) | |
tree | b24d6d95f49348f6b12b29031f4fd1950f1e0287 /gcc/extend.texi | |
parent | da76ffefae325a056c0125ae4cbc61dab7f32021 (diff) | |
download | gcc-96149f2d49006c580aa97b97435c0d38d60ab438.tar.gz |
* extend.texi (Bound member functions): Document unbound pmf
conversion.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29558 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/extend.texi')
-rw-r--r-- | gcc/extend.texi | 8 |
1 files changed, 8 insertions, 0 deletions
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. |