Boost logo

Boost :

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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk