Skip to content

Commit

Permalink
use secure cast_model<>
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jul 26, 2016
1 parent 4558712 commit 8512929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/standard_model_two_scale_matching.hpp.in
Expand Up @@ -56,8 +56,8 @@ public:
}

virtual void set_models(Two_scale_model* low, Two_scale_model* high) {
eft = (standard_model::StandardModel<Two_scale>*) low;
model = (@ModelName@<Two_scale>*) high;
eft = cast_model<standard_model::StandardModel<Two_scale>*>(low);
model = cast_model<@ModelName@<Two_scale>*>(high);
}

virtual void match_high_to_low_scale_model() {
Expand Down

0 comments on commit 8512929

Please sign in to comment.