Hi I have situation on windows 10, that declared empty class member variable vector, but this vector\'s begin()(first iterator)
and end()(last iterator)
std::vector v;
assert(v.begin() == v.end());
This should work: begin and end compare equal.
On the other hand
auto b = v.begin();
auto e = v.end();
assert(&b == &e);
is prohibited from working: the two iterators are different objects and must have different addresses.
Compare the equivalent:
int i = 42;
int j = 42;
assert(i == j); // ok
assert(&i == &j); // fail