From 9d04d656c2544a10f3b0e4bf23f97fb4e53bda7b Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 3 May 2021 15:12:19 -0400 Subject: [PATCH] [ox/std] Switch String from Vector to Buffer (synced from d20a24d10fd5da83b8b02e9f046dec07a760c863) --- src/ox/std/buffer.hpp | 1 + src/ox/std/string.hpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ox/std/buffer.hpp b/src/ox/std/buffer.hpp index 9462457a9..ef32e2f40 100644 --- a/src/ox/std/buffer.hpp +++ b/src/ox/std/buffer.hpp @@ -8,6 +8,7 @@ #pragma once +#include "error.hpp" #include "vector.hpp" namespace ox { diff --git a/src/ox/std/string.hpp b/src/ox/std/string.hpp index d551bcf68..19a92c646 100644 --- a/src/ox/std/string.hpp +++ b/src/ox/std/string.hpp @@ -12,6 +12,7 @@ #include #endif +#include "buffer.hpp" #include "memops.hpp" #include "strops.hpp" #include "typetraits.hpp" @@ -21,7 +22,7 @@ namespace ox { class String { private: - Vector m_buff; + Buffer m_buff; public: String() noexcept;