From 4d99d22e10a3cb2a421da1618c127128816613c9 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 26 Sep 2023 13:36:07 +1000 Subject: std::string -> std::pmr::string in psram --- src/codecs/include/codec.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/codecs/include/codec.hpp') diff --git a/src/codecs/include/codec.hpp b/src/codecs/include/codec.hpp index 2f95389c..67358d54 100644 --- a/src/codecs/include/codec.hpp +++ b/src/codecs/include/codec.hpp @@ -21,6 +21,8 @@ #include "span.hpp" #include "types.hpp" +#include "memory_resource.hpp" + namespace codecs { /* @@ -69,7 +71,7 @@ class ICodec { kInternalError, }; - static auto ErrorString(Error err) -> std::string { + static auto ErrorString(Error err) -> std::pmr::string { switch (err) { case Error::kOutOfInput: return "out of input"; -- cgit v1.2.3