Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ArrayView construction from empty std::vector asserts #75
As mentioned per gitter, the following code asserts on the vectors bounds check:
#include <vector> #include <Corrade/Containers/ArrayViewStl.h> //... std::vector<int> v; ArrayView<int>(v);
As in line https://github.com/mosra/corrade/blob/master/src/Corrade/Containers/ArrayViewStl.h#L65 it tries to access element 0.