The following line generates a compiler error:
std::vector<int>::iterator blah = std::advance(instructions.begin(), x );
where I have declared:
std::vector<int> instructions;
int x;
The error I get is:
error C2440: 'initializing' : cannot convert from 'void' to 'std::_Vector_iterator<_Ty,_Alloc>'.
What element of that statement is of type void
?