Build fails when assertions are enabled
Closed this issue · 0 comments
MaartenBaert commented
Assertions seem to be broken right now, when enabled the build fails with a number of errors like these:
snake/src/snake.cpp: In member function ‘virtual std::unique_ptr<Agent> ParameterizedCellTreeAgent::make(std::vector<int>, Config&) const’:
snake/src/snake.cpp:524:18: error: no match for ‘operator==’ (operand types are ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ and ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’})
524 | assert(param == params.back());
| ~~~~~ ^~ ~~~~~~~~~~~~~
| | |
| | __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >