Boost C++ Libraries: Ticket #12841: Boost.Property_Tree Missing Include Bind Placeholders https://svn.boost.org/trac10/ticket/12841 <p> Hi, </p> <p> I am compiling against boost with <strong>gcc/4.9.2</strong>, <strong>cmake/3.7.2</strong> and <strong>cuda/8.0</strong> and get the following compile errors: </p> <pre class="wiki">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 </pre><p> due to missing includes of </p> <pre class="wiki">#include &lt;boost/bind.hpp&gt; #include &lt;boost/bind/placeholders.hpp&gt; </pre><p> and <em>_1</em> itself residing inside boost::placeholders. </p> <p> Boost 1.61 up to the lastest stable 1.63.0 and the develop version are affected: </p> <blockquote> <p> <a class="ext-link" href="https://github.com/boostorg/property_tree/commit/ea940990691de91e9b22255d9b450fcdac237646#diff-0dfb3989a052317b135552cd5d53801d"><span class="icon">​</span>https://github.com/boostorg/property_tree/commit/ea940990691de91e9b22255d9b450fcdac237646#diff-0dfb3989a052317b135552cd5d53801d</a> </p> </blockquote> <p> I attached a patch to fix it and will open a PR on github. </p> <p> (This bug is quite identical to what I fixed Boost.Python in <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/10932" title="#10932: Bugs: Boost.Python Missing Include Placeholders (closed: fixed)">#10932</a>) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12841 Trac 1.4.3 a.huebl@… Wed, 15 Feb 2017 23:04:03 GMT attachment set https://svn.boost.org/trac10/ticket/12841 https://svn.boost.org/trac10/ticket/12841 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">0001-JSON-Parser-Missing-Bind-Placeholders.patch</span> </li> </ul> <p> Patch to fix compile error </p> Ticket a.huebl@… Wed, 15 Feb 2017 23:06:03 GMT <link>https://svn.boost.org/trac10/ticket/12841#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12841#comment:1</guid> <description> <p> <a class="missing wiki">GitHub</a> PR opened in <a class="ext-link" href="https://github.com/boostorg/property_tree/pull/26"><span class="icon">​</span>https://github.com/boostorg/property_tree/pull/26</a> </p> </description> <category>Ticket</category> </item> <item> <author>a.huebl@…</author> <pubDate>Thu, 16 Feb 2017 08:48:54 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12841#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12841#comment:2</guid> <description> <p> Note: the issue is triggered as soon as <code>BOOST_BIND_NO_PLACEHOLDERS</code> is defined in user code. </p> </description> <category>Ticket</category> </item> </channel> </rss>