Boost C++ Libraries: Ticket #13574: Unable to compile boost/test for C++17 https://svn.boost.org/trac10/ticket/13574 <p> For example: </p> <pre class="wiki">clang-linux.compile.c++.without-pth bin.v2/linux.static.x64/boost/bin.v2/libs/test/build/clang-linux-6.0.0/release/link-static/threading-multi/debug.o In file included from libs/test/src/debug.cpp:16: In file included from ./boost/test/impl/debug.ipp:53: ./boost/test/utils/algorithm.hpp:118:42: error: no member named 'bind1st' in namespace 'std' if( std::find_if( first2, last2, BOOST_TEST_BIND1ST( pred, *first1 ) ) == last2 ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./boost/test/utils/algorithm.hpp:25:38: note: expanded from macro 'BOOST_TEST_BIND1ST' #define BOOST_TEST_BIND1ST(F,A) std::bind1st( (F), (A) ) </pre><p> <a class="ext-link" href="https://github.com/boostorg/test/issues/146"><span class="icon">​</span>https://github.com/boostorg/test/issues/146</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13574 Trac 1.4.3 Raffi Enficiaud Thu, 21 Jun 2018 05:15:57 GMT <link>https://svn.boost.org/trac10/ticket/13574#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13574#comment:1</guid> <description> <p> What are your compilation environment and options? I am currently building for Visual C++ 17 with /latest and it compiles fine. </p> </description> <category>Ticket</category> </item> <item> <author>ki.stfu@…</author> <pubDate>Thu, 21 Jun 2018 14:22:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13574#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13574#comment:2</guid> <description> <p> std::bind1st (<a class="ext-link" href="http://en.cppreference.com/w/cpp/utility/functional/bind12"><span class="icon">​</span>http://en.cppreference.com/w/cpp/utility/functional/bind12</a>) and many other things were removed in C++17. Just use the right compiler which removed them from its own implementation. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Thu, 21 Jun 2018 14:27:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13574#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13574#comment:3</guid> <description> <p> I know, and what I am saying is that it should work with C++17 because it is already handled. Would you care indicating me the compiler that you are using, such that I check with boost.config what is wrong? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Thu, 21 Jun 2018 17:39:26 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13574#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13574#comment:4</guid> <description> <p> For the record, this is what we have in Boost.Test: </p> <pre class="wiki">#ifdef BOOST_NO_CXX98_BINDERS #define BOOST_TEST_BIND1ST(F,A) std::bind( (F), (A), std::placeholders::_1 ) #else #define BOOST_TEST_BIND1ST(F,A) std::bind1st( (F), (A) ) #endif </pre><p> and <a class="ext-link" href="https://www.boost.org/doc/libs/1_67_0/libs/config/doc/html/boost_config/boost_macro_reference.html#boost_config.boost_macro_reference.macros_that_describe_features_that_have_been_removed_from_the_standard_"><span class="icon">​</span>associated doc</a> </p> <p> For you <code>BOOST_NO_CXX98_BINDERS</code> should be defined, and it would be useful that you check that. Maybe some include is missing. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Sat, 03 Nov 2018 08:58:12 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13574#comment:5 https://svn.boost.org/trac10/ticket/13574#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> Closing as no update and not having enough information for reproducing the issue. </p> Ticket