I have this code #include <vector> #include <iostream> int main(int argc, char* argv[]) { std::vector<int> v1,v2; std::cout << std::distance(v1.begin(),v2.begin()); return 0; } and it has a bug because it is not meaningful to compare the iterators of two different vectors.
Ryan Haining
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Ryan
Contact Ryan, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack