mgcpp
A C++ Math Library Based on CUDA
error_code.hpp
Go to the documentation of this file.
1 
2 // Copyright RedPortal, mujjingun 2017 - 2018.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef _MGCPP_SYSTEM_ERROR_CODE_
8 #define _MGCPP_SYSTEM_ERROR_CODE_
9 
10 #include <string>
11 #include <system_error>
12 #include <type_traits>
13 
18 
19 namespace mgcpp {
20 enum class status_t { success = 0 };
21 
22 std::error_condition make_error_condition(mgcpp::status_t err) noexcept;
23 } // namespace mgcpp
24 
25 namespace std {
26 template <>
27 struct is_error_condition_enum<mgcpp::status_t> : public std::true_type {};
28 } // namespace std
29 
30 #endif
Definition: adapter_base.hpp:12
std::error_condition make_error_condition(mgcpp::status_t err) noexcept
Definition: shape.hpp:33
status_t
Definition: error_code.hpp:20