Opened 9 years ago

Closed 7 years ago

#9389 closed Bugs (fixed)

boost::log operator<< (basic_formatting_ostream< CharT, TraitsT, AllocatorT >& strm, T const& value)

Reported by: pal666@… Owned by: Andrey Semashev
Milestone: To Be Determined Component: log
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

i have a type, whose output operator takes non-const reference (operator<<(ostream&, T&))

it cannot be used with boost::log operator<< (basic_formatting_ostream< CharT, TraitsT, AllocatorT >& strm, T const& value)

please consider removing const restriction

Attachments (1)

BoostLogTest.zip (4.4 KB ) - added by Vite Falcon <vitefalcon@…> 7 years ago.
Here's an example that breaks; VS2013, x64, boost_1_58_0

Download all attachments as: .zip

Change History (8)

comment:2 by Andrey Semashev, 9 years ago

Resolution: fixed
Status: newclosed

Merged to master.

comment:3 by Vite Falcon <vitefalcon@…>, 7 years ago

This specific change has caused compiler issues for me that can be seen in this gist: http://tinyurl.com/boost-log-compiler-error

I removed the lines you committed as part of this fix and my application works fine. This is a breaking change. Can you please fix this ASAP?

comment:4 by Vite Falcon <vitefalcon@…>, 7 years ago

Resolution: fixed
Status: closedreopened

comment:5 by Andrey Semashev, 7 years ago

Please, provide a small code sample which breaks.

by Vite Falcon <vitefalcon@…>, 7 years ago

Attachment: BoostLogTest.zip added

Here's an example that breaks; VS2013, x64, boost_1_58_0

in reply to:  5 comment:6 by Vite Falcon <vitefalcon@…>, 7 years ago

Replying to andysem:

Please, provide a small code sample which breaks.

Just did. This is the same configuration that breaks for me. It breaks for 32-bit build as well although the attached project doesn't have it.

comment:7 by Andrey Semashev, 7 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.