Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc. streams related fixes #11325

Merged
merged 1 commit into from
Sep 18, 2015

Conversation

davidlt
Copy link
Contributor

@davidlt davidlt commented Sep 17, 2015

GCC 5.2.0 does not allow piping output stream into output stream, e.g.,
std::cout << std::cout. There is no more impilicit conversion to void *
since C++11.

std::cout does not directly support std::basic_stringstream as
argument, but because std::basic_stringstream inherits std::basic_ios
and it supports operator void* (until C++11) one could have pushed it
to std::cout. That is wrong, because operator void*() const does not
provide string content of std::basic_stringstream. Instead use str()
method to get a string copy of std::basic_stringstream content.

Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch

GCC 5.2.0 does not allow piping output stream into output stream, e.g.,
`std::cout` << `std::cout`. There is no more impilicit conversion to `void *`
since C++11.

`std::cout` does not directly support `std::basic_stringstream` as
argument, but because `std::basic_stringstream` inherits `std::basic_ios`
and it supports operator `void*` (until C++11) one could have pushed it
to `std::cout`. That is wrong, because `operator void*() const` does not
provide string content of `std::basic_stringstream`. Instead use `str()`
method to get a string copy of `std::basic_stringstream` content.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @davidlt for CMSSW_7_6_X.

Misc. streams related fixes

It involves the following packages:

CondFormats/SiStripObjects
DQM/HcalMonitorClient
EventFilter/Utilities
L1Trigger/CSCTrackFinder
PhysicsTools/JetMCAlgos
Validation/Geometry

@civanch, @Dr15Jones, @cvuosalo, @emeschi, @ianna, @mdhildreth, @monttj, @cmsbuild, @ggovi, @diguida, @cerminar, @deguio, @slava77, @mommsen, @vadler, @mmusich, @mulhearn, @danduggan can you please review it and eventually sign? Thanks.
@apfeiffer1, @imarches, @threus, @acaudron, @VinInn, @Martin-Grunewald, @ferencek, @pvmulder this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@mmusich
Copy link
Contributor

mmusich commented Sep 17, 2015

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@Dr15Jones
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@diguida
Copy link
Contributor

diguida commented Sep 17, 2015

+1

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cvuosalo
Copy link
Contributor

+1

For #11325 9dfa887

Minor fixes to use of std::cout required by GCC 5.2.0. There should be no change in run-time behavior.

The code changes are satisfactory, and Jenkins tests against baseline CMSSW_7_6_X_2015-09-17-1100 show no significant differences, as expected.

davidlange6 added a commit that referenced this pull request Sep 18, 2015
@davidlange6 davidlange6 merged commit 507cecd into cms-sw:CMSSW_7_6_X Sep 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants