Does this code compile for anyone else (Visual C++ AND other compilers)?
Code:
#include <iostream>
#include <algorithm>
#include <vector>
#include <iterator>

int main()
{
	std::cout << "Enter numbers: ";
	std::vector<int> MyIntegers( std::istream_iterator<int>(std::cin), std::istream_iterator<int>() );
	std::cout << "You entered the following numbers: ";
	std::copy(MyIntegers.begin(), MyIntegers.end(), std::ostream_iterator<int>(std::cout, " "));
	std::cout << "\n";
}
It does NOT compile for me with Visual C++, but it DOES compile with g++ (or gcc, or whatever C::B uses).
Is this a fabled compiler bug or just a project / machine bug?