Opened 15 years ago

Closed 13 years ago

Last modified 13 years ago

#1601 closed Bugs (fixed)

distane of boost::tuple

Reported by: Shunsuke Sogame <pstade.mb@…> Owned by: Joel de Guzman
Milestone: Boost 1.36.0 Component: fusion
Version: Boost Development Trunk Severity: Problem
Keywords: tuple fusion Cc:

Description

fusion::distance with boost::tuple doesn't compile. See the attached file.

Attachments (3)

boost_tuple_distance.cpp (408 bytes ) - added by Shunsuke Sogame <pstade.mb@…> 15 years ago.
a failed example
boost_tuple.cpp.patch (1.2 KB ) - added by Stjepan Rajko 13 years ago.
expanded version of OP's test, integrated in fusion/test/sequence/boost_tuple.cpp
boost_tuple_iterator.hpp.patch (1.6 KB ) - added by Stjepan Rajko 13 years ago.
fix for ticket

Download all attachments as: .zip

Change History (7)

by Shunsuke Sogame <pstade.mb@…>, 15 years ago

Attachment: boost_tuple_distance.cpp added

a failed example

comment:1 by Stjepan Rajko, 13 years ago

[Bug Sprint]

Error confirmed on recent trunk. Attaching patch for boost_tuple test which includes OP's test.

I have a working fix, will upload soon.

by Stjepan Rajko, 13 years ago

Attachment: boost_tuple.cpp.patch added

expanded version of OP's test, integrated in fusion/test/sequence/boost_tuple.cpp

by Stjepan Rajko, 13 years ago

fix for ticket

comment:2 by Stjepan Rajko, 13 years ago

[Bug Sprint]

Expanded test and added fix. I put the fix together without much knowledge of how boost::tuple or fusion's boost_tuple_iterator works, so it should probably be double checked. There is also some detail code that may need to be moved into a more appropriate place.

Expanded test passes on OS X / gcc-darwin 4.0.1

comment:3 by Joel de Guzman, 13 years ago

Resolution: fixed
Status: newclosed

(In [54849]) Fix #1601

comment:4 by Joel de Guzman, 13 years ago

(In [54850]) Fix #1601

Note: See TracTickets for help on using tickets.