* config/abi/post/sparc-solaris/sparcv9/baseline_symbols.txt:
Likewise.
+2020-05-07 Jonathan Wakely <jwakely@redhat.com>
+
+ PR c/92472
+ * include/parallel/multiway_merge.h (_GuardedIterator::operator*)
+ (_GuardedIterator::operator _RAIter, _UnguardedIterator::operator*)
+ (_UnguardedIterator::operator _RAIter): Add const qualifier.
+ (operator<(_GuardedIterator&, _GuardedIterator&)
+ (operator<=(_GuardedIterator&, _GuardedIterator&)
+ (operator<(_UnguardedIterator&, _UnguardedIterator&)
+ (operator<=(_UnguardedIterator&, _UnguardedIterator&): Change
+ parameters to const references.
+
2020-05-06 Martin Liska <mliska@suse.cz>
Revert:
/** @brief Dereference operator.
* @return Referenced element. */
typename std::iterator_traits<_RAIter>::value_type&
- operator*()
+ operator*() const
{ return *_M_current; }
/** @brief Convert to wrapped iterator.
* @return Wrapped iterator. */
- operator _RAIter()
+ operator _RAIter() const
{ return _M_current; }
/** @brief Compare two elements referenced by guarded iterators.
* @param __bi2 Second iterator.
* @return @c true if less. */
friend bool
- operator<(_GuardedIterator<_RAIter, _Compare>& __bi1,
- _GuardedIterator<_RAIter, _Compare>& __bi2)
+ operator<(const _GuardedIterator<_RAIter, _Compare>& __bi1,
+ const _GuardedIterator<_RAIter, _Compare>& __bi2)
{
if (__bi1._M_current == __bi1._M_end) // __bi1 is sup
return __bi2._M_current == __bi2._M_end; // __bi2 is not sup
* @param __bi2 Second iterator.
* @return @c True if less equal. */
friend bool
- operator<=(_GuardedIterator<_RAIter, _Compare>& __bi1,
- _GuardedIterator<_RAIter, _Compare>& __bi2)
+ operator<=(const _GuardedIterator<_RAIter, _Compare>& __bi1,
+ const _GuardedIterator<_RAIter, _Compare>& __bi2)
{
if (__bi2._M_current == __bi2._M_end) // __bi1 is sup
return __bi1._M_current != __bi1._M_end; // __bi2 is not sup
/** @brief Dereference operator.
* @return Referenced element. */
typename std::iterator_traits<_RAIter>::value_type&
- operator*()
+ operator*() const
{ return *_M_current; }
/** @brief Convert to wrapped iterator.
* @return Wrapped iterator. */
- operator _RAIter()
+ operator _RAIter() const
{ return _M_current; }
/** @brief Compare two elements referenced by unguarded iterators.
* @param __bi2 Second iterator.
* @return @c true if less. */
friend bool
- operator<(_UnguardedIterator<_RAIter, _Compare>& __bi1,
- _UnguardedIterator<_RAIter, _Compare>& __bi2)
+ operator<(const _UnguardedIterator<_RAIter, _Compare>& __bi1,
+ const _UnguardedIterator<_RAIter, _Compare>& __bi2)
{
// Normal compare.
return (__bi1.__comp)(*__bi1, *__bi2);
* @param __bi2 Second iterator.
* @return @c True if less equal. */
friend bool
- operator<=(_UnguardedIterator<_RAIter, _Compare>& __bi1,
- _UnguardedIterator<_RAIter, _Compare>& __bi2)
+ operator<=(const _UnguardedIterator<_RAIter, _Compare>& __bi1,
+ const _UnguardedIterator<_RAIter, _Compare>& __bi2)
{
// Normal compare.
return !(__bi1.__comp)(*__bi2, *__bi1);