From 94cd71fe09eca8dc3cb9cf1cfe38977fe6ee10b8 Mon Sep 17 00:00:00 2001 From: James Jensen Date: Fri, 11 Mar 2016 14:59:44 -0500 Subject: [PATCH] Allow subclassing ValidationResults. I use this because our Path constraint needs information global to the current validator(the root of the document). The natural place for this would be in a subclass of Validator, but by the time we are in the validation visitor we don't have access to that. I prefer not to use a global because that would introduce threading issues. That leaves putting the state in the results. --- include/valijson/validation_results.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/valijson/validation_results.hpp b/include/valijson/validation_results.hpp index f36acde..e6e8d57 100644 --- a/include/valijson/validation_results.hpp +++ b/include/valijson/validation_results.hpp @@ -19,6 +19,7 @@ class ValidationResults { public: + virtual ~ValidationResults() {} /** * @brief Describes a validation error. *