Opened 3 years ago

Closed 3 years ago

#11249 closed Bugs (fixed)

Compilation fails after including reverse_fold.hpp

Reported by: Christopher Hinz <hinz@…> Owned by: Joel de Guzman
Milestone: To Be Determined Component: fusion
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc:


After including the header file for reverse_fold, compilation fails with the error:

In file included from /usr/include/boost/fusion/algorithm/iteration/reverse_fold.hpp:35:
/usr/include/boost/fusion/algorithm/iteration/detail/preprocessed/reverse_fold.hpp:16:29: error: unknown template name 'result_of_with_decltype'
          : fusion::detail::result_of_with_decltype<

Unlike fold.hpp, reverse_fold.hpp never includes the corresponding header file for result_of_with_decltype.

The error can be reproduced with the following code:

#include <boost/fusion/algorithm/iteration/reverse_fold.hpp> 

int main()

This bug also affects reverse_iter_fold.

Change History (2)

comment:1 Changed 3 years ago by Kohei Takahashi <flast@…>

comment:2 Changed 3 years ago by Joel de Guzman

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.