Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9798 closed Bugs (fixed)

multi_index does not compile with BOOST_BIND_NO_PLACEHOLDERS

Reported by: maxim.yegorushkin@… 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.

Change History (2)

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

Resolution: fixed
Status: newclosed

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,

comment:2 by maxim.yegorushkin@…, 9 years ago

Thanks a lot, Joaquin.

Note: See TracTickets for help on using tickets.