mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 08:46:44 +08:00
mock: std::error_code -> std::error_condition
This commit is contained in:
parent
89559468e7
commit
4b570029a9
@ -47,7 +47,7 @@ template <typename... A> struct promise {
|
||||
(void)exception;
|
||||
}
|
||||
|
||||
void set_error(std::error_code error) noexcept {
|
||||
void set_error(std::error_condition error) noexcept {
|
||||
// ...
|
||||
(void)error;
|
||||
}
|
||||
@ -75,7 +75,7 @@ continuable<std::string> http_request(std::string url) {
|
||||
// ...
|
||||
result.set_exception(nullptr);
|
||||
// ...
|
||||
result.set_error(std::error_code{});
|
||||
result.set_error(std::error_condition{});
|
||||
};
|
||||
}
|
||||
|
||||
@ -92,9 +92,9 @@ int main(int, char**) {
|
||||
// ...
|
||||
(void)exception;
|
||||
})
|
||||
.failed([](std::error_code code) {
|
||||
.failed([](std::error_condition error) {
|
||||
// ...
|
||||
(void)code;
|
||||
(void)error;
|
||||
});
|
||||
|
||||
return 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user