Boost C++ Libraries: Ticket #4495: Including dynamic_bitset while using BGL's boost::dynamic_properties forces operator>> into std namespace https://svn.boost.org/trac10/ticket/4495 <p> Including <code>dynamic_bitset.hpp</code> (without using it) breaks previously working BGL code, which uses <code>boost::dynamic_properties</code>. We get the following error: </p> <p> <code>/opt/local/include/boost/lexical_cast.hpp:785: error: no match for 'operator&gt;&gt;' in 'stream &gt;&gt; output'</code> </p> <p> Wrapping my <code>operator&gt;&gt;</code> into <code>namespace std</code> fixes the compiler error. </p> <p> I've created a rather "minimal" example which should confirm this (simply run <code>g++ XXX.cpp</code>): </p> <ul><li><code>xxx.cpp</code>: this is the version without dynamic_bitset and compiles </li><li><code>yyy.cpp</code>: a variant of <code>xxx.cpp</code> which includes dynamic_bitset; gives above compiler error </li><li><code>zzz.cpp</code>: this is a variant of <code>yyy.cpp</code> which compiles again </li></ul><p> The problem can be reproduced in Boost 1.43.0 and in Boost trunk. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4495 Trac 1.4.3 Thomas Krennwallner <tkren@…> Fri, 30 Jul 2010 13:31:07 GMT attachment set https://svn.boost.org/trac10/ticket/4495 https://svn.boost.org/trac10/ticket/4495 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">xxx.cpp</span> </li> </ul> <p> Working example without dynamic_bitset </p> Ticket Thomas Krennwallner <tkren@…> Fri, 30 Jul 2010 13:31:36 GMT attachment set https://svn.boost.org/trac10/ticket/4495 https://svn.boost.org/trac10/ticket/4495 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">yyy.cpp</span> </li> </ul> <p> Nonworking example with dynamic_bitset </p> Ticket Thomas Krennwallner <tkren@…> Fri, 30 Jul 2010 13:32:05 GMT attachment set https://svn.boost.org/trac10/ticket/4495 https://svn.boost.org/trac10/ticket/4495 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">zzz.cpp</span> </li> </ul> <p> Workaround </p> Ticket Steven Watanabe Mon, 03 Jan 2011 23:10:16 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4495#comment:1 https://svn.boost.org/trac10/ticket/4495#comment:1 <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">invalid</span> </li> </ul> <p> yyy.cpp is incorrect. operator&gt;&gt; cannot be found by Argument Dependent Lookup. xxx.cpp only works because gcc doesn't implement two-phase name lookup perfectly. </p> Ticket