Commit Diff
--- vostokd/vostokd.cc +++ vostokd/vostokd.cc @@ -23,6 +23,7 @@ namespace template <std::size_t N> constexpr tcb::span<const char> cut_null(const char (&arr)[N]) { + static_assert(N > 0, "!(N > 0)"); return tcb::span<const char>{&arr[0], N - 1}; }