Modify

Opened 10 years ago

Closed 9 years ago

Last modified 9 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@…> 10 years ago.
a failed example
boost_tuple.cpp.patch (1.2 KB) - added by Stjepan Rajko 9 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 9 years ago.
fix for ticket

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by Shunsuke Sogame <pstade.mb@…>

Attachment: boost_tuple_distance.cpp added

a failed example

comment:1 Changed 9 years ago by Stjepan Rajko

[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.

Changed 9 years ago by Stjepan Rajko

Attachment: boost_tuple.cpp.patch added

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

Changed 9 years ago by Stjepan Rajko

fix for ticket

comment:2 Changed 9 years ago by Stjepan Rajko

[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 Changed 9 years ago by Joel de Guzman

Resolution: fixed
Status: newclosed

(In [54849]) Fix #1601

comment:4 Changed 9 years ago by Joel de Guzman

(In [54850]) Fix #1601

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Joel de Guzman.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.