rdmenezes / ontl

Automatically exported from code.google.com/p/ontl
0 stars 0 forks source link

std::vector applies less-or-equal comparsion for reverse iterators #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/ontl/source/browse/branches/x64/ntl/stlx/
vector.hxx?spec=svn709&r=709#447

bool const insert_from_self = begin() <= first && first < end();

When std::vector receives a reverse iterators, this code fails.

std::string str01("portofino");

std::string::reverse_iterator i1 = str01.rbegin();
std::string::reverse_iterator i2 = str01.rend();
std::string str02(i1, i2);

Original issue reported on code.google.com by icestudent@gmail.com on 20 Nov 2009 at 8:13

GoogleCodeExporter commented 9 years ago
I think this is still issue 40 which is not closed anywhy.

Original comment by ntl.supp...@gmail.com on 20 Nov 2009 at 6:01

GoogleCodeExporter commented 9 years ago
fixed in r712

Original comment by ntl.supp...@gmail.com on 21 Nov 2009 at 1:18

GoogleCodeExporter commented 9 years ago

Original comment by icestudent@gmail.com on 24 Nov 2009 at 12:46