[RFC] Implementing addressof for C++0x

Paolo Carlini paolo.carlini@oracle.com
Thu May 20 12:24:00 GMT 2010

On 05/20/2010 02:18 PM, Peter Dimov wrote:
>> On 05/20/2010 01:55 PM, Paolo Carlini wrote:
>>> It's uglier because the code above doesn't work for functions,
>> By the way, do you have a specific testcase in mind?
>> Because addressof_fn_test.cpp, part of Boost, passes...
> This is probably a g++/gcc extension... some compilers do not allow
> references to functions to be casted to char&, and I believe the
> standard doesn't permit that, either.
I see. I'm a bit reluctant to add complexity to the code, given that
current Comeau and Intel, at least, in strict-mode, also like it...


More information about the Gcc mailing list