X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibc%2B%2B.so_src%2Finclude_exp%2Fsystem_error;h=496970eb08b048bbe6112564589fb4b2b72bdb27;hb=0f68a84d600ae8c88e444552c07f04b0dbd67003;hp=ec08bee17238900feb4eaf501bc95aec1e4a8014;hpb=ac36ea057c987a14f50409f92fc5a31720d8b604;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libc++.so_src/include_exp/system_error b/Usermode/Libraries/libc++.so_src/include_exp/system_error index ec08bee1..496970eb 100644 --- a/Usermode/Libraries/libc++.so_src/include_exp/system_error +++ b/Usermode/Libraries/libc++.so_src/include_exp/system_error @@ -8,11 +8,14 @@ #ifndef _LIBCXX_SYSTEM_ERROR_ #define _LIBCXX_SYSTEM_ERROR_ -#if __cplusplus <= 199711L // C++11 check +#include "_libcxx_helpers.h" + +#if !_CXX11_AVAIL # error "This header requires C++11 support enabled" #endif #include +#include namespace std { @@ -20,13 +23,13 @@ class error_category; class error_condition; class error_code; -bool operator==(const error_condition& lhs, const error_condition& rhs) noexcept; -bool operator!=(const error_condition& lhs, const error_condition& rhs) noexcept; -bool operator< (const error_condition& lhs, const error_condition& rhs) noexcept; -bool operator==(const error_condition& lhs, const error_code& rhs) noexcept; -bool operator==(const error_code& lhs, const error_condition& rhs) noexcept; -bool operator!=(const error_condition& lhs, const error_code& rhs) noexcept; -bool operator!=(const error_code& lhs, const error_condition& rhs) noexcept; +static bool operator==(const error_condition& lhs, const error_condition& rhs) noexcept; +static bool operator!=(const error_condition& lhs, const error_condition& rhs) noexcept; +static bool operator< (const error_condition& lhs, const error_condition& rhs) noexcept; +static bool operator==(const error_condition& lhs, const error_code& rhs) noexcept; +static bool operator==(const error_code& lhs, const error_condition& rhs) noexcept; +static bool operator!=(const error_condition& lhs, const error_code& rhs) noexcept; +static bool operator!=(const error_code& lhs, const error_condition& rhs) noexcept; extern const error_category& generic_category() noexcept; extern const error_category& system_category() noexcept; @@ -154,25 +157,25 @@ public: const char* what() const noexcept; }; -bool operator==(const error_condition& lhs, const error_condition& rhs) noexcept { +static inline bool operator==(const error_condition& lhs, const error_condition& rhs) noexcept { return lhs.category() == rhs.category() && lhs.value() == rhs.value(); } -bool operator!=(const error_condition& lhs, const error_condition& rhs) noexcept { +static inline bool operator!=(const error_condition& lhs, const error_condition& rhs) noexcept { return !(lhs == rhs); } -bool operator< (const error_condition& lhs, const error_condition& rhs) noexcept { +static inline bool operator< (const error_condition& lhs, const error_condition& rhs) noexcept { return lhs.category() < rhs.category() || lhs.value() < rhs.value(); } -bool operator==(const error_condition& lhs, const error_code& rhs) noexcept { +static inline bool operator==(const error_condition& lhs, const error_code& rhs) noexcept { return lhs.category().equivalent(rhs, lhs.value()) || rhs.category().equivalent(rhs.value(), lhs); } -bool operator==(const error_code& lhs, const error_condition& rhs) noexcept { +static inline bool operator==(const error_code& lhs, const error_condition& rhs) noexcept { return lhs.category().equivalent(lhs.value(),rhs) || rhs.category().equivalent(lhs,rhs.value()); } -bool operator!=(const error_condition& lhs, const error_code& rhs) noexcept { +static inline bool operator!=(const error_condition& lhs, const error_code& rhs) noexcept { return !(lhs == rhs); } -bool operator!=(const error_code& lhs, const error_condition& rhs) noexcept { +static inline bool operator!=(const error_code& lhs, const error_condition& rhs) noexcept { return !(lhs == rhs); }