[Boost-bugs] [Boost C++ Libraries] #4495: Including dynamic_bitset while using BGL's boost::dynamic_properties forces operator>> into std namespace

Subject: [Boost-bugs] [Boost C++ Libraries] #4495: Including dynamic_bitset while using BGL's boost::dynamic_properties forces operator>> into std namespace
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-30 13:30:19


#4495: Including dynamic_bitset while using BGL's boost::dynamic_properties forces
operator>> into std namespace
---------------------------------------------------------+------------------
 Reporter: Thomas Krennwallner <tkren@…> | Owner: gennaro_prota
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: dynamic_bitset
  Version: Boost 1.43.0 | Severity: Problem
 Keywords: |
---------------------------------------------------------+------------------
 Including {{{dynamic_bitset.hpp}}} (without using it) breaks previously
 working BGL code, which uses {{{boost::dynamic_properties}}}. We get the
 following error:

 {{{/opt/local/include/boost/lexical_cast.hpp:785: error: no match for
 'operator>>' in 'stream >> output'}}}

 Wrapping my {{{operator>>}}} into {{{namespace std}}} fixes the compiler
 error.

 I've created a rather "minimal" example which should confirm this (simply
 run {{{g++ XXX.cpp}}}):

  * {{{xxx.cpp}}}: this is the version without dynamic_bitset and compiles
  * {{{yyy.cpp}}}: a variant of {{{xxx.cpp}}} which includes
 dynamic_bitset; gives above compiler error
  * {{{zzz.cpp}}}: this is a variant of {{{yyy.cpp}}} which compiles again

 The problem can be reproduced in Boost 1.43.0 and in Boost trunk.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4495>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC