Commit Diff


commit - 22e84cb07053853a9ead94350fcd856dd82f47e1
commit + 679cbc0acc9ceb3822cb8574013f0bfcb6460b0d
blob - 0030360c072f273bef80ef452d9b0f9985ae2d5c
blob + 66f41bfe0404e451318143c2be6792916a4a1513
--- 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};
 }