Ticket #2823: boost-fusion-issue2823.diff

File boost-fusion-issue2823.diff, 550 bytes (added by Dean Michael Berris, 12 years ago)

Patch as proposed by Rene, applies to r66834.

  • container/list/detail/build_cons.hpp

     
    4848        static type
    4949        call(First const& f, Last const& l)
    5050        {
    51             return type(*f, next_build_cons::call(fusion::next(f), l));
     51            typename result_of::value_of<First>::type v = *f;
     52            return type(v, next_build_cons::call(fusion::next(f), l));
    5253        }
    5354    };
    5455