Skip to content

Commit 4382daa

Browse files
authored
Merge pull request #787 from Pressio/fix_clang_error
fix apple clang error for template function
2 parents e4fbd34 + 002b121 commit 4382daa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/pressio/ode/impl/ode_implicit_policy_residual_jacobian_with_mass_matrix.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ class ResidualJacobianWithMassMatrixStandardPolicy
120120
{
121121

122122
if (name == StepScheme::BDF1){
123-
(*this).template compute_impl_bdf1
123+
this->compute_impl_bdf1
124124
(predictedState, stencilStatesManager,
125125
stencilVelocities, rhsEvaluationTime.get(),
126126
dt.get(), step.get(), R, Jo);
127127
}
128128

129129
else if (name == StepScheme::BDF2){
130-
(*this).template compute_impl_bdf2
130+
this->compute_impl_bdf2
131131
(predictedState, stencilStatesManager,
132132
stencilVelocities, rhsEvaluationTime.get(),
133133
dt.get(), step.get(), R, Jo);

include/pressio/ode/impl/ode_implicit_policy_residual_jacobian_without_mass_matrix.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ class ResidualJacobianStandardPolicy
120120
void trampoline(StepScheme name, Args && ...args) const
121121
{
122122
if (name == StepScheme::BDF1){
123-
(*this).template compute_impl_bdf1(std::forward<Args>(args)...);
123+
this->compute_impl_bdf1(std::forward<Args>(args)...);
124124
}
125125

126126
else if (name == StepScheme::BDF2){
127-
(*this).template compute_impl_bdf2(std::forward<Args>(args)...);
127+
this->compute_impl_bdf2(std::forward<Args>(args)...);
128128
}
129129

130130
else if (name == StepScheme::CrankNicolson){

0 commit comments

Comments
 (0)