IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 0a2d19f1 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

string_view -> string

parent 07bf5d2e
No related branches found
No related tags found
1 merge request!509Resolve "`--hadronModel` default keyword in corsika.cpp not working on macOS"
Pipeline #10681 passed
This commit is part of merge request !509. Comments created here will be created in the context of that merge request.
......@@ -70,7 +70,6 @@
#include <iomanip>
#include <limits>
#include <string>
#include <string_view>
/*
NOTE, WARNING, ATTENTION
......@@ -177,7 +176,7 @@ int main(int argc, char** argv) {
CLI11_PARSE(app, argc, argv);
if (app.count("--verbosity")) {
std::string_view const loglevel = app["--verbosity"]->as<std::string_view>();
auto const loglevel = app["--verbosity"]->as<std::string>();
if (loglevel == "warn") {
logging::set_level(logging::level::warn);
} else if (loglevel == "info") {
......@@ -299,7 +298,7 @@ int main(int argc, char** argv) {
// have SIBYLL always for PROPOSAL photo-hadronic interactions
auto sibyll = std::make_shared<corsika::sibyll::Interaction>(env);
if (auto const modelStr = app["--hadronModel"]->as<std::string_view>();
if (auto const modelStr = app["--hadronModel"]->as<std::string>();
modelStr == "SIBYLL-2.3d") {
heModel = DynamicInteractionProcess<setup::Stack<EnvType>>{sibyll};
} else if (modelStr == "QGSJet-II.04") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment