Boost logo

Boost :

Subject: Re: [boost] [result_of] now uses decltype on release branch
From: Michel Morin (mimomorin_at_[hidden])
Date: 2012-09-04 11:23:09


Joel de Guzman wrote:
> Ok I fixed the fusion::invoke test. Tricky!
>
> That also fixes the first test from Ticket #6915. The second, OTOH,
> I think is an error.

I didn't have a closer look at #6915, so I cannot
answer about the ticket (sorry!).
But the following test case still fails:
(Test case attached.)

Michel Morin wrote:
> Here is a minimal test case:
>
> #include <boost/fusion/include/invoke.hpp>
> #include <boost/fusion/include/vector.hpp>
>
> struct F {
> typedef void result_type;
> void operator()(int&) const {}
> };
>
> int main (int argc, char* argv[])
> {
> boost::fusion::vector<int> v(1);
> // Error when decltype-based result_of is used;
> // trying to instantiate result_of<F(const int&)>
> boost::fusion::invoke(F(), v);
>
> return 0;
> }

Regards,
Michel




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