From a436504d27d3d23cad4cbc7ca88f5835d4f6d141 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 10 Aug 2023 12:15:34 +1000 Subject: [PATCH] fixed_string: add a `size` query --- fixed_string.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fixed_string.hpp b/fixed_string.hpp index ecabd031..62554e3b 100644 --- a/fixed_string.hpp +++ b/fixed_string.hpp @@ -23,6 +23,8 @@ namespace cruft { struct fixed_string { char value[N + 1] {}; + static std::size_t size (void) { return N; } + constexpr fixed_string (char const _value[N+1]) noexcept {