Commit 4a486e13 authored by David E. DeMarle's avatar David E. DeMarle

Merge branch 'dont-hide-parent-methods' into 'master'

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.

See merge request !13
parents ce902eb0 0ccb916f
......@@ -221,6 +221,7 @@ public:
* @return The geometry associated with this grid.
*/
shared_ptr<XdmfGeometry> getGeometry();
using XdmfGrid::getGeometry;
virtual void read();
......
......@@ -124,6 +124,7 @@ public:
* @return The geometry associated with this grid.
*/
shared_ptr<XdmfGeometry> getGeometry();
using XdmfGrid::getGeometry;
virtual std::string getItemTag() const;
......@@ -155,6 +156,7 @@ public:
* @return The topology associated with this grid.
*/
shared_ptr<XdmfTopology> getTopology();
using XdmfGrid::getTopology;
virtual void read();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment