Mark VlRandomAssocKeyWidths final for portability lint
This commit is contained in:
parent
59414eda71
commit
c66e901171
|
|
@ -109,11 +109,11 @@ public:
|
||||||
// key formats emitted by V3Randomize (string = 128, integral = 8 * sizeof).
|
// key formats emitted by V3Randomize (string = 128, integral = 8 * sizeof).
|
||||||
// Recursion stops at non-assoc levels, which keep the 32-bit default.
|
// Recursion stops at non-assoc levels, which keep the 32-bit default.
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct VlRandomAssocKeyWidths {
|
struct VlRandomAssocKeyWidths final {
|
||||||
static void push(std::vector<size_t>&) {}
|
static void push(std::vector<size_t>&) {}
|
||||||
};
|
};
|
||||||
template <typename T_Key, typename T_Value>
|
template <typename T_Key, typename T_Value>
|
||||||
struct VlRandomAssocKeyWidths<VlAssocArray<T_Key, T_Value>> {
|
struct VlRandomAssocKeyWidths<VlAssocArray<T_Key, T_Value>> final {
|
||||||
static void push(std::vector<size_t>& widths) {
|
static void push(std::vector<size_t>& widths) {
|
||||||
widths.push_back(std::is_same<T_Key, std::string>::value ? 128 : sizeof(T_Key) * 8);
|
widths.push_back(std::is_same<T_Key, std::string>::value ? 128 : sizeof(T_Key) * 8);
|
||||||
VlRandomAssocKeyWidths<T_Value>::push(widths);
|
VlRandomAssocKeyWidths<T_Value>::push(widths);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue