commit 679cbc0acc9ceb3822cb8574013f0bfcb6460b0d from: Aleksey Ryndin date: Fri Aug 11 16:05:55 2023 UTC Revert assert commit - 22e84cb07053853a9ead94350fcd856dd82f47e1 commit + 679cbc0acc9ceb3822cb8574013f0bfcb6460b0d blob - 0030360c072f273bef80ef452d9b0f9985ae2d5c blob + 66f41bfe0404e451318143c2be6792916a4a1513 --- vostokd/vostokd.cc +++ vostokd/vostokd.cc @@ -23,6 +23,7 @@ namespace template constexpr tcb::span cut_null(const char (&arr)[N]) { + static_assert(N > 0, "!(N > 0)"); return tcb::span{&arr[0], N - 1}; }