$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Shunsuke Sogame (mb2act_at_[hidden])
Date: 2006-07-11 09:33:39
Peter Dimov wrote:
> Shunsuke Sogame wrote:
>> Hi,
>>
>> void foo()
>> { }
>>
>> void test()
>> {
>> boost::addressof(::foo);
>> }
>>
>>
>> doesn't compile under GCC 3.4.4.
>> What happens?
>
> "Function addressof() returns the address of an object."
>
> foo is not an object.
I see. Well I encountered it while taking address of lambda functors.
(type_traits layer will work around it.)
Thanks!
-- Shunsuke Sogame