From 6016e74b5553ed674b5e1b191cd86262574b7ba5 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Mon, 14 Jun 2021 00:16:44 +0100 Subject: [PATCH] Drop ambiguous overloads in VlWide The 32-bit build fails with the ambiguous overload present. --- include/verilated_heavy.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/verilated_heavy.h b/include/verilated_heavy.h index c0b1d9938..97b44c92b 100644 --- a/include/verilated_heavy.h +++ b/include/verilated_heavy.h @@ -116,10 +116,8 @@ template struct VlWide final { // OPERATOR METHODS VlWide& operator=(const VlWide&) = default; VlWide& operator=(VlWide&&) = default; - const EData& operator[](size_t index) const { return m_storage[index]; }; - EData& operator[](size_t index) { return m_storage[index]; }; - operator WDataOutP() { return &m_storage[0]; } - operator WDataInP() const { return &m_storage[0]; } + operator WDataOutP() { return &m_storage[0]; } // This also allows [] + operator WDataInP() const { return &m_storage[0]; } // This also allows [] // METHODS const EData& at(size_t index) const { return m_storage[index]; }