Adjust operator!=() in fixed_iterator.h

Instead of taking an iterator by reference, take it by value as
done in the other operators and overloads.
This commit is contained in:
Roland Reichwein 2026-05-28 10:18:22 +02:00
parent 57f5184d77
commit 2b2b97552c

View File

@ -263,7 +263,7 @@ namespace etl
/// Inequality operator. iterator == fixed_iterator.
//*****************************************************************************
template <typename TIterator>
ETL_CONSTEXPR bool operator!=(TIterator& lhs, const etl::fixed_iterator<TIterator>& rhs)
ETL_CONSTEXPR bool operator!=(TIterator lhs, const etl::fixed_iterator<TIterator>& rhs)
{
return !(lhs == rhs);
}