Boost logo

Boost Users :

Subject: Re: [Boost-users] [ptr_container] compiler error with BOOST_RESULT_OF_USE_DECLTYPE
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2011-02-25 04:45:20


> Nathan Ridge wrote:
> > Am I doing something wrong or is this a bug?
>
> You're not doing wrong.
> This is caused by incorrect use of `result_of`.
>
> Changing the line 56 of boost/ptr_container/indirect_fun.hpp
> BOOST_DEDUCED_TYPENAME result_of< Fun( BOOST_DEDUCED_TYPENAME
> pointee::type& ) >::type
> to
> BOOST_DEDUCED_TYPENAME result_of< const Fun(
> BOOST_DEDUCED_TYPENAME pointee::type& ) >::type
> resolves the issue (`Fun` is changed to `const Fun`).
>

I still get the compiler error after making the change.
 
>From the instantiation backtrace, the problematic result_of invocation
is on line 108, not line 56 (but changing `Fun` to `const Fun` on line 108
doesn't help either).
 
Regards,
Nate.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net