I would be nice to implement a relational operators (such as >, < >=, etc.) of Vec class as a constant member functions since they does not change the object state:
Vec<bin> operator<(const Num_T value) const
instead of existing
Vec<bin> operator<(const Num_T value)
It would allow to get rid of following ugly const_casts:
Hello,
I would be nice to implement a relational operators (such as >, < >=, etc.) of Vec class as a constant member functions since they does not change the object state:
Vec<bin> operator<(const Num_T value) const
instead of existing
Vec<bin> operator<(const Num_T value)
It would allow to get rid of following ugly const_casts:
void decode(const ivec& soft_input){
....
bvec hard_input = (const_cast<ivec&> (soft_input) <=0);
...
}
Best Regards.
Andy. P.
This will be fixed in next version of IT++ to be released within a few weeks.