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.
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