diff --git a/sources/swarm/library/sources/json/placeholder_function.cpp b/sources/swarm/library/sources/json/placeholder_function.cpp index 91be391..2218739 100644 --- a/sources/swarm/library/sources/json/placeholder_function.cpp +++ b/sources/swarm/library/sources/json/placeholder_function.cpp @@ -58,7 +58,8 @@ inline void WriteLineNumber(size_t line_number, hex_view.Append(' '); } -[[nodiscard]] inline std::span SpanFrom(const char* text) noexcept { +[[nodiscard]] inline std::span SpanFrom( + const char* const text) noexcept { return std::span(text, std::strlen(text)); }