fix constness

This commit is contained in:
Robert Haschke 2021-03-29 13:51:40 +02:00 committed by v4hn
parent 106c138ef5
commit 0e3ec0b6ec
2 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ class MergerPrivate : public ParallelContainerBasePrivate
using ChildSolutionList = std::vector<const SubTrajectory*>;
using ChildSolutionMap = std::map<const Stage*, ChildSolutionList>;
// map from external source state (iterator) to all corresponding children's solutions
std::map<InterfaceState*, ChildSolutionMap> source_state_to_solutions_;
std::map<const InterfaceState*, ChildSolutionMap> source_state_to_solutions_;
public:
using Spawner = std::function<void(SubTrajectory&&)>;

View File

@ -883,7 +883,7 @@ void MergerPrivate::onNewPropagateSolution(const SolutionBase& s) {
auto source_it = internalToExternalMap().find(source_state);
// internal->external mapping for source state should have been created
assert(source_it != internalToExternalMap().end());
InterfaceState* external_source_state = &*source_it->second;
const InterfaceState* external_source_state = &*source_it->second;
// retrieve (or create if necessary) the ChildSolutionMap for the given external source state
ChildSolutionMap& all_solutions =