Browse Source

Fixed compile issue: boost::split seems to need an lvalue for the input string.

tempestpy_adaptions
TimQu 5 years ago
parent
commit
013695a6ce
  1. 3
      src/storm/models/sparse/Model.cpp

3
src/storm/models/sparse/Model.cpp

@ -350,8 +350,9 @@ namespace storm {
if (includeLabeling || firstValue != nullptr || secondValue != nullptr || hasStateValuations()) { if (includeLabeling || firstValue != nullptr || secondValue != nullptr || hasStateValuations()) {
outStream << "label = \"" << state; outStream << "label = \"" << state;
if (hasStateValuations()) { if (hasStateValuations()) {
std::string stateInfo = getStateValuations().getStateInfo(state);
std::vector<std::string> results; std::vector<std::string> results;
boost::split(results, getStateValuations().getStateInfo(state), [](char c) { return c == ',';});
boost::split(results, stateInfo, [](char c) { return c == ',';});
storm::utility::outputFixedWidth(outStream, results, maxWidthLabel); storm::utility::outputFixedWidth(outStream, results, maxWidthLabel);
} }
outStream << ": "; outStream << ": ";

Loading…
Cancel
Save