X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fstdexcept;h=75562073bf8ce252b3e020f94cca2ccd3ded0b25;hb=0f68a84d600ae8c88e444552c07f04b0dbd67003;hp=f9e3e3e8ae82f950da45b6753df2e41a07f99ffb;hpb=a7880f755a4f48b2254616ff761ba5fecbf790a7;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc++.so_src/include_exp/stdexcept b/Usermode/Libraries/libc++.so_src/include_exp/stdexcept index f9e3e3e8..75562073 100644 --- a/Usermode/Libraries/libc++.so_src/include_exp/stdexcept +++ b/Usermode/Libraries/libc++.so_src/include_exp/stdexcept @@ -9,21 +9,37 @@ #define _LIBCXX_STDEXCEPT_ #include "exception" +#include "string" namespace std { -class logic_error: +namespace _bits { + +class str_except: public exception +{ + ::std::string m_str; +public: + explicit str_except(const string& what_arg); + virtual ~str_except() noexcept; + str_except& operator= (const str_except& e) noexcept; + virtual const char* what() const noexcept; +}; + +} // namespace _bits + +class logic_error: + public _bits::str_except { public: - explicit logic_error(const basic_string& what_arg); + explicit logic_error(const string& what_arg); }; class runtime_error: - public exception + public _bits::str_except { public: - explicit runtime_error(const basic_string& what_arg); + explicit runtime_error(const string& what_arg); }; class out_of_range: @@ -33,7 +49,14 @@ public: explicit out_of_range(const string& what_arg); }; -} // namespace std +class length_error: + public logic_error +{ +public: + explicit length_error(const string& what_arg); +}; + +}; // namespace std #endif