feat(kernel): update stl headers

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-29 18:27:57 +00:00
parent 31181d5b5d
commit 93d897e95c
16 changed files with 1042 additions and 29 deletions

View File

@ -19,6 +19,7 @@
#include <convert.h>
#include <cassert>
#include <cstring>
#include <new>
namespace std
@ -116,4 +117,13 @@ namespace std
out_of_range &operator=(out_of_range &&) = default;
virtual ~out_of_range() = default;
};
class invalid_argument : public logic_error
{
public:
// invalid_argument(const std::string &what_arg) = default;
invalid_argument(const char *what_arg) : logic_error(what_arg) {}
invalid_argument(const invalid_argument &other) = default;
invalid_argument &operator=(const invalid_argument &other) = default;
};
}