diff --git a/deps/ox/src/ox/std/buffer.hpp b/deps/ox/src/ox/std/buffer.hpp index b49d9eb9..6ba9db40 100644 --- a/deps/ox/src/ox/std/buffer.hpp +++ b/deps/ox/src/ox/std/buffer.hpp @@ -100,8 +100,7 @@ class CharBuffWriter { char *m_buff = nullptr; public: - template - explicit constexpr CharBuffWriter(ox::Array &buff) noexcept: + explicit constexpr CharBuffWriter(ox::Span buff) noexcept: m_cap(buff.size()), m_buff(buff.data()) { } diff --git a/deps/ox/src/ox/std/fmt.hpp b/deps/ox/src/ox/std/fmt.hpp index a7558c1c..0ec2aa2a 100644 --- a/deps/ox/src/ox/std/fmt.hpp +++ b/deps/ox/src/ox/std/fmt.hpp @@ -88,7 +88,7 @@ class FmtArg { if constexpr(is_bool_v) { return v ? "true" : "false"; } else if constexpr(is_integer_v) { - ox::CharBuffWriter w(dataStr.data(), DataSz); + ox::CharBuffWriter w{dataStr}; std::ignore = ox::writeItoa(v, w); return dataStr.data(); } else {