Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GCC-4.2.1 is unable to compile code like this: std::vector<int> v; std::vector<int>::const_reverse_iterator i; for (i = v.rbegin(); i != v.rend(); ++i) ; It's unable to deduce const overload for 'rend': "no match for ‘operator!=’ in ‘i != std::vector<_Tp, _Alloc>::rend()" However, the following code compiles fine: std::vector<int> v; std::vector<int>::const_reverse_iterator i = v.rbegin(), e = v.rend(); for (i != e; ++i) ; This was reported by Ryan Shmidt.
- Loading branch information