Boost C++ Libraries: Ticket #4317: test_generic_locks.cpp doesn't compiles any more on gcc3.4 cygwin https://svn.boost.org/trac10/ticket/4317 <p> After modification on the locks algorithm, test_generic_locks.cpp doesn't compiles any more on gcc3.4 cygwin. </p> <p> gcc.compile.c++ ../../../bin.v2/libs/thread/test/test_generic_locks.test/gcc-3.4.4/debug/threading-multi/test_generic_locks.o ../../../boost/thread/locks.hpp: In instantiation of `boost::detail::has_member_called_try_lock&lt;dummy_iterator, true&gt;::derived': ../../../boost/thread/locks.hpp:65: instantiated from `boost::detail::has_member_called_try_lock&lt;dummy_iterator, true&gt;' ../../../boost/thread/locks.hpp:145: instantiated from `boost::is_mutex_type&lt;dummy_iterator&gt;' ../../../boost/thread/locks.hpp:1280: instantiated from `void boost::lock(const MutexType1&amp;, const MutexType2&amp;) [with MutexType1 = dummy_iterator, MutexType2 = dummy_iterator]' test_generic_locks.cpp:356: instantiated from here ../../../boost/thread/locks.hpp:65: error: base `dummy_iterator' with only non-default constructor in class without a constructor </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4317 Trac 1.4.3 viboes Wed, 09 Jun 2010 00:37:42 GMT <link>https://svn.boost.org/trac10/ticket/4317#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4317#comment:1</guid> <description> <p> The dummy_iterator default constructor is missing: </p> <pre class="wiki"> dummy_iterator(): p(0) {} </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 09 Jun 2010 00:52:39 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4317 https://svn.boost.org/trac10/ticket/4317 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">4317.patch</span> </li> </ul> Ticket viboes Wed, 09 Jun 2010 00:53:04 GMT type changed https://svn.boost.org/trac10/ticket/4317#comment:2 https://svn.boost.org/trac10/ticket/4317#comment:2 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Patches</span> </li> </ul> Ticket Anthony Williams Wed, 09 Jun 2010 07:53:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4317#comment:3 https://svn.boost.org/trac10/ticket/4317#comment:3 <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">fixed</span> </li> </ul> <p> Adding a constructor to dummy_iterator will just mask the issue. The "derived" class in question has no instances, so we can just declare an unimplemented default constructor to stop the compiler complaining. </p> <p> Fixed on trunk. </p> Ticket