#9798 closed Bugs (fixed)
multi_index does not compile with BOOST_BIND_NO_PLACEHOLDERS
Reported by: | Owned by: | Joaquín M López Muñoz | |
---|---|---|---|
Milestone: | To Be Determined | Component: | multi_index |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | Cc: |
Description
I am using std::bind and boost placeholders conflict with std::placeholders, so I have to define BOOST_BIND_NO_PLACEHOLDERS.
The problem is boost::multi_index does not compile with BOOST_BIND_NO_PLACEHOLDERS because it uses unqualified placeholder names in serialization functions.
As a workaround I have to define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION as well.
Note:
See TracTickets
for help on using tickets.
Hi Maxim,
Actually, if BOOST_BIND_NO_PLACEHOLDERS is defined there are no placeholder names to use, either in a qualified or unqualified way.
Anyway, I've just made the lib compatible with this macro:
https://github.com/boostorg/multi_index/commit/f6ef739fc9b87f157baafa3ccce746dbd027f3d1
Best,