|
21 | 21 |
|
22 | 22 | #define OUTCOME_USE_STD_IN_PLACE_TYPE 1 |
23 | 23 |
|
24 | | -namespace __outcome_detail { |
| 24 | +namespace scale::__outcome_detail { |
25 | 25 |
|
26 | 26 | template <typename T> class Category : public std::error_category { |
27 | 27 | public: |
@@ -52,11 +52,11 @@ template <typename T> class Category : public std::error_category { |
52 | 52 | Category() = default; |
53 | 53 | }; /* end of class */ |
54 | 54 |
|
55 | | -} // namespace __outcome_detail |
| 55 | +} // namespace scale::__outcome_detail |
56 | 56 |
|
57 | 57 | #define __OUTCOME_DEFINE_MAKE_ERROR_CODE(Enum) \ |
58 | 58 | extern std::error_code make_error_code(Enum e) { \ |
59 | | - return {static_cast<int>(e), __outcome_detail::Category<Enum>::get()}; \ |
| 59 | + return {static_cast<int>(e), scale::__outcome_detail::Category<Enum>::get()}; \ |
60 | 60 | } |
61 | 61 |
|
62 | 62 | #define __OUTCOME_DECLARE_MAKE_ERROR_CODE(Enum) \ |
@@ -87,14 +87,14 @@ template <typename T> class Category : public std::error_category { |
87 | 87 | __OUTCOME_DEFINE_MAKE_ERROR_CODE(Enum) \ |
88 | 88 | }; \ |
89 | 89 | template <> \ |
90 | | - std::string __outcome_detail::Category<ns::Enum>::toString(ns::Enum Name) |
| 90 | + std::string scale::__outcome_detail::Category<ns::Enum>::toString(ns::Enum Name) |
91 | 91 |
|
92 | 92 | /// MUST BE EXECUTED AT FILE LEVEL(global namespace) IN CPP |
93 | 93 | // Enum - enum name. Example: EncodeError |
94 | 94 | // Name - variable name. Example: e |
95 | 95 | #define OUTCOME_CPP_DEFINE_CATEGORY_2(Enum, Name) \ |
96 | 96 | __OUTCOME_DEFINE_MAKE_ERROR_CODE(Enum) \ |
97 | | - template <> std::string __outcome_detail::Category<Enum>::toString(Enum Name) |
| 97 | + template <> std::string scale::__outcome_detail::Category<Enum>::toString(Enum Name) |
98 | 98 |
|
99 | 99 | // kind of "macro overloading" |
100 | 100 | #define __GET_MACRO_3(_1, _2, _3, NAME, ...) NAME |
|
0 commit comments