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