Opened 12 years ago

Closed 11 years ago

#4755 closed Bugs (fixed)

fusion::map conflict with mpl

Reported by: ssiloti@… Owned by: Joel de Guzman
Milestone: To Be Determined Component: fusion
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

G++ 4.4.3 is reporting conflicts in boost/fusion/container/map/detail/deref_data_impl.hpp between boost::fusion::deref and boost:mpl::deref, and in boost/fusion/container/map/detail/deref_impl.hpp between boost::fusion::at and boost::mpl::at.

Looks like this is the same issue as was found by Christophe Henry in fusion::set back on 6/9/2010. Attached a patch to add qualifiers to the offending calls.

Attachments (3)

fusion-map-qualify-deref-at.patch (1.0 KB ) - added by ssiloti@… 12 years ago.
Add qualifiers to calls to fusion::deref and fusion::at
main.cpp (2.2 KB ) - added by Gabriel Redner <gredner@…> 11 years ago.
Self-contained .cpp file which reproduces the problem.
error (78.9 KB ) - added by Gabriel Redner <gredner@…> 11 years ago.
Error produced by g++ 4.4.5 when compiling the previously attached .cpp file

Download all attachments as: .zip

Change History (6)

by ssiloti@…, 12 years ago

Add qualifiers to calls to fusion::deref and fusion::at

comment:1 by viboes, 12 years ago

Could you show the errors, please?

by Gabriel Redner <gredner@…>, 11 years ago

Attachment: main.cpp added

Self-contained .cpp file which reproduces the problem.

by Gabriel Redner <gredner@…>, 11 years ago

Attachment: error added

Error produced by g++ 4.4.5 when compiling the previously attached .cpp file

comment:2 by Gabriel Redner <gredner@…>, 11 years ago

I have been bitten by the same problem. It is present both in boost 1.46.1 and on trunk. I can confirm that the fix in the previously-attached patch fixes the problem for me (though I ended up implementing it myself before I discovered this ticket).

Is it possible to have someone commit the patch before someone else ends up wasting time tracking this down again?

comment:3 by Joel de Guzman, 11 years ago

Resolution: fixed
Status: newclosed

Patched trunk. Closing this one.

Note: See TracTickets for help on using tickets.