Opened 6 years ago
Last modified 6 years ago
#12841 new Bugs
Boost.Property_Tree Missing Include Bind Placeholders
Reported by: | 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:
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)
Change History (3)
by , 6 years ago
Attachment: | 0001-JSON-Parser-Missing-Bind-Placeholders.patch added |
---|
comment:2 by , 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.
Patch to fix compile error