Re: [Boost-bugs] [Boost C++ Libraries] #4910: ambiguity of operator<< in display_expr

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4910: ambiguity of operator<< in display_expr
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-21 09:22:27


#4910: ambiguity of operator<< in display_expr
-------------------------------------------------------+--------------------
  Reporter: Maxim Yanchenko <Maxim.Yanchenko@…> | Owner: eric_niebler
      Type: Patches | Status: new
 Milestone: To Be Determined | Component: proto
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------------+--------------------

Comment (by Peter Schüller <schueller.p@…>):

 sorry to say that, but [67366] broke something:

 define the following function inline solves the problem (line 105 in
 debug.hpp):
 {{{
         inline std::ostream &operator <<(ostream_wrapper sout_wrap,
 named_any t)
 }}}
 otherwise I get duplicate symbol definitions if I use spirit in two
 compilation units:
 {{{
 /...path.../proto/debug.hpp:105: multiple definition of
 `boost::proto::hidden_detail_::operator<<(boost::proto::hidden_detail_::ostream_wrapper,
 boost::proto::hidden_detail_::named_any)'
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4910#comment:3>
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:05 UTC