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: | 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)
Change History (8)
comment:1 by , 9 years ago
comment:3 by , 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 , 7 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
by , 7 years ago
Attachment: | BoostLogTest.zip added |
---|
Here's an example that breaks; VS2013, x64, boost_1_58_0
comment:6 by , 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 , 7 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Implemented in develop: https://github.com/boostorg/log/commit/74267d9f39b9297452c5446bfbe06eca4feeb8ad.