From c66e901171f6f9b6600a0b33609f73be12457c73 Mon Sep 17 00:00:00 2001 From: Yilou Wang Date: Sat, 4 Jul 2026 13:56:34 +0200 Subject: [PATCH] Mark VlRandomAssocKeyWidths final for portability lint --- include/verilated_random.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/verilated_random.h b/include/verilated_random.h index 10ac33e36..96ca94e20 100644 --- a/include/verilated_random.h +++ b/include/verilated_random.h @@ -109,11 +109,11 @@ public: // key formats emitted by V3Randomize (string = 128, integral = 8 * sizeof). // Recursion stops at non-assoc levels, which keep the 32-bit default. template -struct VlRandomAssocKeyWidths { +struct VlRandomAssocKeyWidths final { static void push(std::vector&) {} }; template -struct VlRandomAssocKeyWidths> { +struct VlRandomAssocKeyWidths> final { static void push(std::vector& widths) { widths.push_back(std::is_same::value ? 128 : sizeof(T_Key) * 8); VlRandomAssocKeyWidths::push(widths);