diff --git a/mex/sources/bytecode/Interpreter.cc b/mex/sources/bytecode/Interpreter.cc index a9f919885..a3aa0bbe3 100644 --- a/mex/sources/bytecode/Interpreter.cc +++ b/mex/sources/bytecode/Interpreter.cc @@ -604,7 +604,7 @@ Interpreter::ReadCodeFile(string file_name, CodeLoad &code) void Interpreter::check_for_controlled_exo_validity(FBEGINBLOCK_ *fb, vector sconstrained_extended_path) { - vector exogenous = fb->get_exogenous(); + vector exogenous = fb->get_exogenous(); vector endogenous = fb->get_endogenous(); for (vector::iterator it = sconstrained_extended_path.begin(); it != sconstrained_extended_path.end(); it++) { @@ -627,8 +627,8 @@ Interpreter::check_for_controlled_exo_validity(FBEGINBLOCK_ *fb, vector throw FatalExceptionHandling(tmp.str()); } } - for (vector::iterator it = exogenous.begin(); it != exogenous.end(); it++) - previous_block_exogenous.push_back(*it); + for (auto it : exogenous) + previous_block_exogenous.push_back(it); } bool diff --git a/preprocessor b/preprocessor index 27a8b3b70..c699d5730 160000 --- a/preprocessor +++ b/preprocessor @@ -1 +1 @@ -Subproject commit 27a8b3b70ed93e45f17e9792d0a23ea781b2b4dc +Subproject commit c699d57308ed766ab6b9a6f6fd690c81d0656cb4