diff --git a/boost/numpy/invoke_matching.hpp b/boost/numpy/invoke_matching.hpp index 0e95ff96..6a4dfdb1 100644 --- a/boost/numpy/invoke_matching.hpp +++ b/boost/numpy/invoke_matching.hpp @@ -44,7 +44,7 @@ struct dtype_template_invoker { if (dtype::get_builtin() == m_dtype) { - m_func.template apply(); + m_func.Function::template apply(); throw dtype_template_match_found(); } } @@ -66,7 +66,7 @@ struct dtype_template_invoker< boost::reference_wrapper > { if (dtype::get_builtin() == m_dtype) { - m_func.template apply(); + m_func.Function::template apply(); throw dtype_template_match_found(); } } @@ -87,7 +87,7 @@ struct nd_template_invoker { if (m_nd == N) { - m_func.template apply(); + m_func.Function::template apply(); throw nd_template_match_found(); } } @@ -107,7 +107,7 @@ struct nd_template_invoker< boost::reference_wrapper > { if (m_nd == N) { - m_func.template apply(); + m_func.Function::template apply(); throw nd_template_match_found(); } } @@ -148,7 +148,7 @@ template struct array_template_invoker_wrapper_2 { template - void apply() const { m_func.template apply();} + void apply() const { m_func.Function::template apply();} array_template_invoker_wrapper_2(Function & func) : m_func(func) {} private: