diff --git a/include/cucumber-cpp/internal/hook/HookRegistrar.hpp b/include/cucumber-cpp/internal/hook/HookRegistrar.hpp index 61d6a605..f46520d3 100644 --- a/include/cucumber-cpp/internal/hook/HookRegistrar.hpp +++ b/include/cucumber-cpp/internal/hook/HookRegistrar.hpp @@ -22,6 +22,8 @@ class CUCUMBER_CPP_EXPORT CallableStep { class CUCUMBER_CPP_EXPORT Hook { public: + virtual ~Hook() {} + void setTags(const std::string &csvTagNotation); virtual void invokeHook(Scenario *scenario, CallableStep *step); virtual void skipHook(); diff --git a/include/cucumber-cpp/internal/step/StepManager.hpp b/include/cucumber-cpp/internal/step/StepManager.hpp index 457ee899..e6e91f50 100644 --- a/include/cucumber-cpp/internal/step/StepManager.hpp +++ b/include/cucumber-cpp/internal/step/StepManager.hpp @@ -102,6 +102,9 @@ class CUCUMBER_CPP_EXPORT InvokeResult { class CUCUMBER_CPP_EXPORT StepInfo : public boost::enable_shared_from_this { public: StepInfo(const std::string &stepMatcher, const std::string source); + + virtual ~StepInfo() {} + SingleStepMatch matches(const std::string &stepDescription) const; virtual InvokeResult invokeStep(const InvokeArgs * pArgs) const = 0; @@ -115,6 +118,8 @@ class CUCUMBER_CPP_EXPORT StepInfo : public boost::enable_shared_from_this