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

use StringFormat::value() instead of operator const std::string &() #19813

Merged
merged 1 commit into from Jul 20, 2017
Merged

use StringFormat::value() instead of operator const std::string &() #19813

merged 1 commit into from Jul 20, 2017

Conversation

smuzaffar
Copy link
Contributor

For clang IBs we see link errors like

DQMServices/Core/src/DQMNet.cc:(.text+0x32e7): undefined reference to `lat::StringFormat::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&() const'
DQMServices/Core/src/DQMNet.cc:(.text+0x3487): undefined reference to `lat::StringFormat::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&() const'
tmp/slc6_amd64_gcc630/src/DQMServices/Core/src/DQMServicesCore/DQMNet.o: In function `DQMNet::run()':
DQMServices/Core/src/DQMNet.cc:(.text+0x5157): undefined reference to `lat::StringFormat::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&() const'

this PR uses const std::string & StringFormat::value() instead of implicit call to operator const std::string &() to avoid this error.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master.

It involves the following packages:

DQMServices/Core

@vazzolini, @kmaeshima, @dmitrijus, @cmsbuild, @vanbesien, @davidlange6 can you please review it and eventually sign? Thanks.
@barvic this is something you requested to watch as well.
@davidlange6 you are the release manager for this.

cms-bot commands are listed here

@smuzaffar
Copy link
Contributor Author

smuzaffar commented Jul 19, 2017

In this case we should replace StringFormat with std::string. If agree then we can have something like

-    p->peeraddr = StringFormat("%1:%2")
-                 .arg(peeraddr.hostname())
-                 .arg(peeraddr.port()).value();
+    p->peeraddr = peeraddr.hostname()+":"+std::to_string(peeraddr.port());

@davidlange6
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 19, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/21623/console Started: 2017/07/19 21:14

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19813/21623/summary.html

Comparison Summary:

  • You potentially added 7 lines to the logs
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 23
  • DQMHistoTests: Total histograms compared: 2310405
  • DQMHistoTests: Total failures: 29518
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2280721
  • DQMHistoTests: Total skipped: 166
  • DQMHistoTests: Total Missing objects: 0
  • Checked 93 log files, 14 edm output root files, 23 DQM output files

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.

None yet

3 participants