Boost C++ Libraries: Ticket #8838: clang/libc++ doesn't define boost::mutex::scoped_lock https://svn.boost.org/trac10/ticket/8838 <p> the boost.lockfree testsuite currently does not compile with clang/libc++/linux: </p> <pre class="wiki">In file included from ../libs/lockfree/test/spsc_queue_stress_test.cpp:20: ../libs/lockfree/test/test_helpers.hpp:41:23: error: no member named 'scoped_lock' in 'boost::mutex' boost::mutex::scoped_lock lock (ref_mutex[index]); </pre><p> compare: <a href="http://www.boost.org/development/tests/trunk/developer/lockfree.html">http://www.boost.org/development/tests/trunk/developer/lockfree.html</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8838 Trac 1.4.3 viboes Sat, 03 Aug 2013 05:16:59 GMT owner, status changed https://svn.boost.org/trac10/ticket/8838#comment:1 https://svn.boost.org/trac10/ticket/8838#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I suspect that the tester is defining BOOST_THREAD_VERSION to 4 so that this deprecated typedef is not included. I suggest you to replace them by lock_guard or unique_lock. </p> Ticket viboes Sat, 03 Aug 2013 07:50:51 GMT component changed https://svn.boost.org/trac10/ticket/8838#comment:2 https://svn.boost.org/trac10/ticket/8838#comment:2 <ul> <li><strong>component</strong> <span class="trac-field-old">thread</span> → <span class="trac-field-new">lockfree</span> </li> </ul> Ticket timblechmann Sat, 03 Aug 2013 08:58:19 GMT <link>https://svn.boost.org/trac10/ticket/8838#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8838#comment:3</guid> <description> <p> i see ... will adapt my code ... but removing this typedef has the potential of breaking a lot of legacy code, so i hope it is just about this one tester. also, would it be possible to mark the typedef as deprecated to get a compiler warning? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>timblechmann</dc:creator> <pubDate>Sat, 03 Aug 2013 09:08:33 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8838#comment:4 https://svn.boost.org/trac10/ticket/8838#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/85196" title="lockfree: use lock_guard instead of the deprecated ...">[85196]</a>) lockfree: use lock_guard instead of the deprecated boost::mutex::scoped_lock </p> <p> fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8838" title="#8838: Bugs: clang/libc++ doesn't define boost::mutex::scoped_lock (closed: fixed)">#8838</a> </p> Ticket