mirror of https://github.com/YosysHQ/yosys.git
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:
parent
189064b8da
commit
80b8cd19c4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue