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 code is technically incorrect: for an empty vector, accessing
the first element is undefined behaviour and this can abort if the
c++ library is compiled with assertions. On the other hand, data()
is well-defined for an empty vector (it just cannot be dereferenced).
Signed-off-by: Amaury Pouly <[email protected]>
0 commit comments