Advertisement
Guest User

iterator problems

a guest
Aug 21st, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. auto& slaveiter = slave->listOfDailyStock.begin();
  2. std::advance(slaveiter, 1);
  3.  
  4. Severity    Code    Description Project File    Line    Suppression State
  5. Error   C2678   binary '+=': no operator found which takes a left-hand operand of type 'const std::_Vector_iterator<std::_Vector_val<std::_Simple_types<dailyStock>>>' (or there is no acceptable conversion)   AP_Exam C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xutility 1084
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement