From be80b525435b01ebf0bb2746be9b35bf6e8b872d Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Tue, 19 Mar 2024 02:33:33 +0200 Subject: [PATCH] Add char_traits stub class to --- include_std/string | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include_std/string b/include_std/string index d52a1fe..56484e9 100644 --- a/include_std/string +++ b/include_std/string @@ -700,4 +700,17 @@ namespace std return iterator(this->Data + this->Length); } }; + + template + class char_traits + { + public: + static size_t length(const CharT *s) + { + size_t len = 0; + while (s[len] != 0) + len++; + return len; + } + }; }