[Boost-bugs] [Boost C++ Libraries] #11579: boost.log version 1.59 stream operator failure for user types

Subject: [Boost-bugs] [Boost C++ Libraries] #11579: boost.log version 1.59 stream operator failure for user types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-25 08:28:20


#11579: boost.log version 1.59 stream operator failure for user types
-------------------------------------------------+-------------------------
 Reporter: Marios Visvardis | Owner: andysem
  <visvardis.marios@…> | Status: new
     Type: Bugs | Component: log
Milestone: To Be Determined | Severity: Regression
  Version: Boost 1.59.0 |
 Keywords: |
-------------------------------------------------+-------------------------
 The following code works as expected with boost 1.57, but fails with boost
 1.59:

 #include <iostream>
 #include <boost/log/trivial.hpp>

 struct Foo
 {
     int d=1;
 };

 std::ostream& operator<<(std::ostream& out, const Foo& foo)
 {
     out << "Foo: " << foo.d;
     return out;
 }

 int main()
 {
     BOOST_LOG_TRIVIAL(info) << Foo();
     return EXIT_SUCCESS;
 }

 I have also started a discussion in SO:

     http://stackoverflow.com/questions/32185858/problems-with-boost-log-
 version-1-59/32187641#32187641

 and a workaround is suggested.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11579>
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:18 UTC