You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TWRoute::replace template function specifies the template parameter needs to meet requirements for forward iterator, while in fact it requires the iterator type to implement operator<= and operator<, which is provided by random access iterator.
I think the containers we use and pass iterators from to replace all meet the random access requirement. Happy to change the type here if we can be more precise, but would this not be superseded by #1090 anyway?
I think the containers we use and pass iterators from to replace all meet the random access requirement.
As far as I have seen, only std::vector is used and its iterators are indeed random access ones.
Happy to change the type here if we can be more precise, but would this not be superseded by #1090 anyway?
I think it would be superseded. On the other hand ranges also have their traits (like forward range, random access range), and we could constrain the ranges just like we constrain the iterators.
The
TWRoute::replace
template function specifies the template parameter needs to meet requirements for forward iterator, while in fact it requires the iterator type to implementoperator<=
andoperator<
, which is provided by random access iterator.vroom/src/structures/vroom/tw_route.cpp
Lines 1007 to 1057 in 176f57a
The text was updated successfully, but these errors were encountered: