From b156838ef8fb213ec6e1c764ef829917cdb23090 Mon Sep 17 00:00:00 2001 From: Louise Poubel Date: Mon, 28 Dec 2020 11:25:09 -0800 Subject: [PATCH] Fix compilation with gcc 10.2.0 Signed-off-by: Louise Poubel --- include/ignition/physics/Entity.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/ignition/physics/Entity.hh b/include/ignition/physics/Entity.hh index 9b3b4b07f..2c209a706 100644 --- a/include/ignition/physics/Entity.hh +++ b/include/ignition/physics/Entity.hh @@ -273,14 +273,15 @@ namespace ignition /// \return A pointer to the implementation of FeatureT, or a nullptr if /// FeatureT is not available. protected: template - typename FeatureT::template Implementation *Interface(); + typename FeatureT::template Implementation *Interface(); /// \brief Same as Interface(), but const-qualified so that const entities /// can request const-qualified interfaces from the implementation. /// \return A pointer to a const-qualified implementation of F, or a /// nullptr if F is not available. - protected: template - const typename F::template Implementation *Interface() const; + protected: template + const typename FeatureT::template Implementation *Interface() + const; /// \brief This is a pointer to the physics engine implementation, and it /// can be used by the object features to find the interfaces that they