From 378e7bd4f4e7bcb4f303476cda530c3f4156c84a Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Mon, 2 Dec 2024 21:00:21 +0000 Subject: [PATCH] Add missing destructor --- hwcpipe/include/hwcpipe/detail/internal_types.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hwcpipe/include/hwcpipe/detail/internal_types.hpp b/hwcpipe/include/hwcpipe/detail/internal_types.hpp index d5276b0..3e0ed1f 100644 --- a/hwcpipe/include/hwcpipe/detail/internal_types.hpp +++ b/hwcpipe/include/hwcpipe/detail/internal_types.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Arm Limited. + * Copyright (c) 2023-2025 Arm Limited. * * SPDX-License-Identifier: MIT */ @@ -29,6 +29,11 @@ namespace expression { */ class context { public: + /** + * @brief Ensure we have a destructor for polymorphic type. + */ + virtual ~context() noexcept = default; + /** * @brief Returns the value a hardware counter from the sampler to be used * in the expression evaluator