@@ -447,10 +447,10 @@ std::vector<std::unique_ptr<collection::Variable>> Rule::getFinalVars(
447447 std::vector<const collection::Variable *> z;
448448 a.second ->evaluateInternal (trans, this , &z);
449449 for (auto &y : z) {
450- exclusions_update_by_tag_remove.push_back (y->m_key );
450+ exclusions_update_by_tag_remove.push_back (std::string ( y->m_key ) );
451451 delete y;
452452 }
453- exclusions_update_by_tag_remove.push_back (a.second ->m_name );
453+ exclusions_update_by_tag_remove.push_back (std::string ( a.second ->m_name ) );
454454
455455 } else {
456456 Variable *b = a.second .get ();
@@ -466,10 +466,10 @@ std::vector<std::unique_ptr<collection::Variable>> Rule::getFinalVars(
466466 std::vector<const collection::Variable *> z;
467467 a.second ->evaluateInternal (trans, this , &z);
468468 for (auto &y : z) {
469- exclusions_update_by_id_remove.push_back (y->m_key );
469+ exclusions_update_by_id_remove.push_back (std::string ( y->m_key ) );
470470 delete y;
471471 }
472- exclusions_update_by_id_remove.push_back (a.second ->m_name );
472+ exclusions_update_by_id_remove.push_back (std::string ( a.second ->m_name ) );
473473 } else {
474474 Variable *b = a.second .get ();
475475 variables.push_back (b);
@@ -482,10 +482,10 @@ std::vector<std::unique_ptr<collection::Variable>> Rule::getFinalVars(
482482 std::vector<const collection::Variable *> z;
483483 variable->evaluateInternal (trans, this , &z);
484484 for (auto &y : z) {
485- exclusions.push_back (y->m_key );
485+ exclusions.push_back (std::string ( y->m_key ) );
486486 delete y;
487487 }
488- exclusions.push_back (variable->m_name );
488+ exclusions.push_back (std::string ( variable->m_name ) );
489489 }
490490 }
491491
0 commit comments