From 0ccb916fdf8bd3105dbf0d27f77d81572b148647 Mon Sep 17 00:00:00 2001 From: David DeMarle Date: Thu, 7 Jul 2016 17:31:52 -0400 Subject: [PATCH] expose parent class's methods to avoid comp warnings -Woverloaded-virtual complains because XdmfGrid's get* is hidden and made uncallable by the non virtual method of the same in the child class. Making the child virtual is problematic since the template parameter is not const in both. This change ensures that both are visible to the user and prevents the compilation warning. --- XdmfCurvilinearGrid.hpp | 1 + XdmfUnstructuredGrid.hpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/XdmfCurvilinearGrid.hpp b/XdmfCurvilinearGrid.hpp index f580a325..c65c944f 100644 --- a/XdmfCurvilinearGrid.hpp +++ b/XdmfCurvilinearGrid.hpp @@ -221,6 +221,7 @@ public: * @return The geometry associated with this grid. */ shared_ptr getGeometry(); + using XdmfGrid::getGeometry; virtual void read(); diff --git a/XdmfUnstructuredGrid.hpp b/XdmfUnstructuredGrid.hpp index 041ab546..d3827876 100644 --- a/XdmfUnstructuredGrid.hpp +++ b/XdmfUnstructuredGrid.hpp @@ -124,6 +124,7 @@ public: * @return The geometry associated with this grid. */ shared_ptr getGeometry(); + using XdmfGrid::getGeometry; virtual std::string getItemTag() const; @@ -155,6 +156,7 @@ public: * @return The topology associated with this grid. */ shared_ptr getTopology(); + using XdmfGrid::getTopology; virtual void read(); -- GitLab