Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9587 closed Bugs (fixed)

Boost Multi-index with two hashes unique with Boost Interprocess allocators does not compile

Reported by: tommy.payette@… Owned by: Joaquín M López Muñoz
Milestone: To Be Determined Component: multi_index
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

To reproduce: 0-Use the example libs/multi_index/example/ip_allocator.cpp. 1-Add #include <boost/multi_index/hashed_index.hpp> 2-Change the book_container ordered_non_unique to hashed_unique. 3-Add to book struct a prize2 4-Add to book_container, a hashed_unique on prize2.

Does not compile: error C2594: 'argument' : ambiguous conversions See attached document

Attachments (3)

CompileError.txt (9.2 KB ) - added by anonymous 9 years ago.
Test.cpp (6.9 KB ) - added by anonymous 9 years ago.
patch.diff (210 bytes ) - added by Joaquín M López Muñoz 9 years ago.

Download all attachments as: .zip

Change History (5)

by anonymous, 9 years ago

Attachment: CompileError.txt added

by anonymous, 9 years ago

Attachment: Test.cpp added

by Joaquín M López Muñoz, 9 years ago

Attachment: patch.diff added

comment:1 by Joaquín M López Muñoz, 9 years ago

Resolution: fixed
Status: newclosed

This has been fixed in the upcoming Boost 1.56. Meanwhile you can apply the attached patch to hashed_index.hpp. The problem has already been discussed at:

http://lists.boost.org/boost-users/2013/12/80753.php

in reply to:  1 comment:2 by tommy.payette@…, 9 years ago

Replying to joaquin:

This has been fixed in the upcoming Boost 1.56. Meanwhile you can apply the attached patch to hashed_index.hpp. The problem has already been discussed at:

http://lists.boost.org/boost-users/2013/12/80753.php

Thank you for fast reply!

Note: See TracTickets for help on using tickets.