diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/LengthOfWaysVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/LengthOfWaysVisitor.h
index 2b9b8d4..bf55272 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/LengthOfWaysVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/LengthOfWaysVisitor.h
@@ -47,6 +47,7 @@ public:
static std::string className() { return "hoot::LengthOfWaysVisitor"; }
LengthOfWaysVisitor();
+ virtual ~LengthOfWaysVisitor() = default;
static Meters getLengthOfWays(const OsmMapPtr& map, ElementPtr e);