Enable the failing part

This commit is contained in:
Denis Blank 2017-10-01 00:54:18 +02:00
parent b9a367ba03
commit 5d11d44a44
2 changed files with 8 additions and 7 deletions

View File

@ -333,7 +333,8 @@ struct error_callback<hints::signature_hint_tag<Args...>, Callback, Executor,
}
/// The operator which is called when an error occurred
void operator()(types::dispatch_error_tag /*tag*/, types::error_type error) {
void operator()(types::dispatch_error_tag /*tag*/,
types::error_type /*error*/) {
/*
*TODO
*auto invoker = [] {};
@ -345,12 +346,12 @@ struct error_callback<hints::signature_hint_tag<Args...>, Callback, Executor,
}
/// Resolves the continuation with the given values
void set_value(Args... args) {
void set_value(Args... /*args*/) {
// std::move(next_callback_)(std::move(args)...);
}
/// Resolves the continuation with the given error variable.
void set_exception(types::error_type error) {
void set_exception(types::error_type /*error*/) {
// std::move(next_callback_)(types::dispatch_error_tag{}, std::move(error));
}
};

View File

@ -46,17 +46,17 @@ int main(int, char**) {
.then([](std::string /*response*/) {
// ...
})
/*.catching([](std::exception_ptr) {
.catching([](std::exception_ptr) {
// ...
})*/;
});
http_request2("github.com")
.then([](std::string /*response*/) {
// ...
})
/*.catching([](std::exception_ptr) {
.catching([](std::exception_ptr) {
// ...
})*/;
});
return 0;
}