Commit dd56fb88 authored by Matthias Vallentin's avatar Matthias Vallentin

Enable ADL on make_error_condition

Since users provide overloads in their namespaces, the compiler must be
able to find this function via ADL.
parent e4d02ab5
......@@ -83,7 +83,7 @@ public:
std::is_error_condition_enum<E>::value
>::type>
maybe(E error_code_enum) {
cr_error(std::make_error_condition(error_code_enum));
cr_error(make_error_condition(error_code_enum));
}
/// Creates an empty instance.
......@@ -167,7 +167,7 @@ public:
std::is_error_condition_enum<E>::value
>::type>
maybe& operator=(E error_code_enum) {
return *this = std::make_error_condition(error_code_enum);
return *this = make_error_condition(error_code_enum);
}
maybe& operator=(maybe&& other) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment