rtlil: Fix value type for iterator over `SigSpec`

When we are iterating over a `SigSpec`, the visited values will be of
type `SigBit` (as is the return type of `operator*()`). Account for that
in the publicly declared types.
This commit is contained in:
Martin Povišer 2023-12-09 18:48:30 +01:00
parent 189064b8da
commit 80b8cd19c4
1 changed files with 6 additions and 6 deletions

View File

@ -806,10 +806,10 @@ struct RTLIL::SigBit
struct RTLIL::SigSpecIterator
{
typedef std::input_iterator_tag iterator_category;
typedef RTLIL::SigSpec value_type;
typedef RTLIL::SigBit value_type;
typedef ptrdiff_t difference_type;
typedef RTLIL::SigSpec* pointer;
typedef RTLIL::SigSpec& reference;
typedef RTLIL::SigBit* pointer;
typedef RTLIL::SigBit& reference;
RTLIL::SigSpec *sig_p;
int index;
@ -823,10 +823,10 @@ struct RTLIL::SigSpecIterator
struct RTLIL::SigSpecConstIterator
{
typedef std::input_iterator_tag iterator_category;
typedef RTLIL::SigSpec value_type;
typedef RTLIL::SigBit value_type;
typedef ptrdiff_t difference_type;
typedef RTLIL::SigSpec* pointer;
typedef RTLIL::SigSpec& reference;
typedef RTLIL::SigBit* pointer;
typedef RTLIL::SigBit& reference;
const RTLIL::SigSpec *sig_p;
int index;