Re: [Boost-bugs] [Boost C++ Libraries] #10825: Undefined stream insertion operator in boost::optional .

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10825: Undefined stream insertion operator in boost::optional .
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-20 23:16:48


#10825: Undefined stream insertion operator in boost::optional .
-------------------------+-------------------------------------------------
  Reporter: | Owner: akrzemi1
  amit.abhash@… | Status: assigned
      Type: Bugs | Component: optional
 Milestone: Boost | Severity: Problem
  1.58.0 | Keywords: undefined stream insertion operator
   Version: Boost |
  1.56.0 |
Resolution: |
-------------------------+-------------------------------------------------

Comment (by akrzemi1):

 In order to stream out optional objects you have to include the IO header:

 {{{
 #include <boost/optional/optional_io.hpp>
 }}}

 I changed the implementation a bit, so that rather than a link-time error
 you get a compile time error about missing header. The change is now in
 develop branch.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10825#comment:4>
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:17 UTC