Opened 6 years ago

Last modified 6 years ago

#12841 new Bugs

Boost.Property_Tree Missing Include Bind Placeholders

Reported by: a.huebl@… Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.63.0 Severity: Showstopper
Keywords: nvcc bind placeholders Cc:

Description

Hi,

I am compiling against boost with gcc/4.9.2, cmake/3.7.2 and cuda/8.0 and get the following compile errors:

boost/property_tree/json_parser/detail/parser.hpp(217): error: identifier "_1" is undefined
boost/property_tree/json_parser/detail/parser.hpp(520): error: identifier "_1" is undefined

due to missing includes of

#include <boost/bind.hpp>
#include <boost/bind/placeholders.hpp>

and _1 itself residing inside boost::placeholders.

Boost 1.61 up to the lastest stable 1.63.0 and the develop version are affected:

https://github.com/boostorg/property_tree/commit/ea940990691de91e9b22255d9b450fcdac237646#diff-0dfb3989a052317b135552cd5d53801d

I attached a patch to fix it and will open a PR on github.

(This bug is quite identical to what I fixed Boost.Python in #10932)

Attachments (1)

0001-JSON-Parser-Missing-Bind-Placeholders.patch (2.0 KB ) - added by a.huebl@… 6 years ago.
Patch to fix compile error

Download all attachments as: .zip

Change History (3)

by a.huebl@…, 6 years ago

Patch to fix compile error

comment:2 by a.huebl@…, 6 years ago

Note: the issue is triggered as soon as BOOST_BIND_NO_PLACEHOLDERS is defined in user code.

Note: See TracTickets for help on using tickets.