Opened 12 years ago

Closed 12 years ago

#4580 closed Bugs (fixed)

result_of of iter_fold() and other fold variants broken

Reported by: anonymous Owned by: Christopher Schmidt
Milestone: Boost 1.45.0 Component: fusion
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:

Description

a file only containing the single line: #include <boost/fusion/algorithm/iteration/iter_fold.hpp>

fails. that's because detail/fold.hpp always uses result_of::fold, instead of result_of::iter_fold, ...

if iteration/fold.hpp is included by chance this can lead to hard other errors that are hard to track down.

attaching patch

Attachments (1)

fold.patch (965 bytes ) - added by anonymous 12 years ago.

Download all attachments as: .zip

Change History (3)

by anonymous, 12 years ago

Attachment: fold.patch added

comment:1 by Christopher Schmidt, 12 years ago

Milestone: To Be DeterminedBoost-1.45.0
Owner: changed from Joel de Guzman to Christopher Schmidt
Status: newassigned

Ouch, that's a killer bug. Thanks for the report! I will commit the fix asap.

comment:2 by Christopher Schmidt, 12 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [64946]

Note: See TracTickets for help on using tickets.