
In the doc (1.54.0) for algorithms under C++14, the first code segment under both equal and mismatch, the last line (for equal here) shows std::equal ( seq1.begin (), seq1.end (), seq1.begin (), seq2.end ()); // false ^^^^^^ Shouldn’t that be std::equal ( seq1.begin (), seq1.end (), seq2.begin (), seq2.end ()); // false ^^^^^^ Similar for mismatch. Larry

On Oct 5, 2013, at 4:38 PM, Larry
In the doc (1.54.0) for algorithms under C++14, the first code segment under both equal and mismatch, the last line (for equal here) shows
std::equal ( seq1.begin (), seq1.end (), seq1.begin (), seq2.end ()); // false
^^^^^^
Shouldn’t that be
std::equal ( seq1.begin (), seq1.end (), seq2.begin (), seq2.end ()); // false
^^^^^^
Similar for mismatch.
Yes, it should. :-( Thanks for the catch - fixed in trunk I will merge to release post-beta -- Marshall Marshall Clow Idio Software mailto:mclow.lists@gmail.com A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki

* Larry
In the doc (1.54.0) for algorithms under C++14, the first code segment under both equal and mismatch, the last line (for equal here) shows
std::equal ( seq1.begin (), seq1.end (), seq1.begin (), seq2.end ()); // false ^^^^^^
Shouldn’t that be
std::equal ( seq1.begin (), seq1.end (), seq2.begin (), seq2.end ()); // false ^^^^^^
just FYI, the ^^^^^^ing only works if you're using a fixed width typeface or someone happens to be using the same typeface and the interface doesn't decide to wrap. Apart from fixed width, I think the only solution is hand-delivered postcards, perhaps involving a pigeon or owl. have a good day.
Similar for mismatch.
Larry
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- -ericP
participants (3)
-
Eric Prud'hommeaux
-
Larry
-
Marshall Clow