mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-10 23:09:18 +00:00
Update STL headers
This commit is contained in:
@ -17,6 +17,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
namespace std
|
||||
{
|
||||
class runtime_error
|
||||
@ -28,4 +30,14 @@ namespace std
|
||||
runtime_error(const char *what_arg) : m_what(what_arg) {}
|
||||
const char *what() const { return this->m_what; }
|
||||
};
|
||||
|
||||
class out_of_range
|
||||
{
|
||||
public:
|
||||
out_of_range(const char *what_arg)
|
||||
{
|
||||
/* FIXME: This is a temporary assert */
|
||||
assert(what_arg != nullptr);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user