-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Removed lexical_cast boost dependency in CondCore #34932
Changes from all commits
f107145
c2f3f43
ca07bd7
22407ac
b0b7081
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,7 +82,7 @@ namespace { | |
auto paramValues = PlotBase::inputParamValues(); | ||
auto ip = paramValues.find("Scenarios"); | ||
if (ip != paramValues.end()) { | ||
auto input = boost::lexical_cast<std::string>(ip->second); | ||
auto input = ip->second; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So casting is not needed here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is already of type string |
||
typedef boost::tokenizer<boost::char_separator<char>> tokenizer; | ||
boost::char_separator<char> sep{","}; | ||
tokenizer tok{input, sep}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,7 @@ namespace { | |
auto paramValues = PlotBase::inputParamValues(); | ||
auto ip = paramValues.find("DetIds"); | ||
if (ip != paramValues.end()) { | ||
auto input = boost::lexical_cast<std::string>(ip->second); | ||
auto input = ip->second; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So casting is not needed here? (same as in SiPixelFEDChannelContainer_PayloadInspector.cc) |
||
typedef boost::tokenizer<boost::char_separator<char>> tokenizer; | ||
boost::char_separator<char> sep{","}; | ||
tokenizer tok{input, sep}; | ||
|
@@ -315,7 +315,7 @@ namespace { | |
auto paramValues = PlotBase::inputParamValues(); | ||
auto ip = paramValues.find("DetId"); | ||
if (ip != paramValues.end()) { | ||
the_detid = boost::lexical_cast<unsigned int>(ip->second); | ||
the_detid = std::stoul(ip->second); | ||
} | ||
|
||
if (payload.get()) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just noticing that would you have implemented something similar as in the other PR of yours, #34976, you would have used here
etc.
What's the reason for the different approach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are not string. For string conversions I have used stoi/stod/stoull for int to long/ul I used static cast since stoull will give error type not string