diff --git a/libs/util/include/psemek/util/span.hpp b/libs/util/include/psemek/util/span.hpp index 8edaca8d..476f072c 100644 --- a/libs/util/include/psemek/util/span.hpp +++ b/libs/util/include/psemek/util/span.hpp @@ -1,7 +1,6 @@ #pragma once #include -#include namespace psemek::util { @@ -42,10 +41,10 @@ namespace psemek::util , p_end{a + N} {} - template - span(std::array & a) + template + span(Container & a) : p_begin{a.data()} - , p_end{a.data() + N} + , p_end{a.data() + a.size()} {} span & operator =(span const &) = default;