Closed ashtum closed 9 months ago
As a general rule, every change that does not immediately fix a test failure needs to follow the procedure of: first commit adds a test that fails without the change, second commit adds the change that fixes the test failure.
Would you please be able to extract the new test into a separate PR? I'd like to merge the original contribution (#101) as a form of giving credit on top of it.
Then this PR is waiting for https://github.com/boostorg/property_tree/issues/100 response.
It's hard to say what's the history here.
I suppose this dates from the days when including
<boost/bind.hpp>
made_1
et al available in the global namespace, which later conflicted withusing namespace std::placeholders;
which also made_1
available.So I assume people who were defining
BOOST_BIND_NO_PLACEHOLDERS
did that in order to be able to useusing namespace std::placeholders;
in their code. But doing so brokeparser.hpp
.This problem will not occur today, because
<boost/bind/bind.hpp>
leaves the placeholders defined innamespace boost::placeholders
, avoiding the conflict. But for backward compatibility, we may want to still support the configuration withBOOST_BIND_NO_PLACEHOLDERS
defined.So adding this include is probably correct, but we need a test that shows why.