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);