generator_promise::{initial,final}_suspend() can be noexcept

This commit is contained in:
fghzxm 2020-07-06 11:56:24 +08:00 committed by Lewis Baker
parent 8929f9cc40
commit a87e97fe5b
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@ namespace cppcoro
generator<T> get_return_object() noexcept;
constexpr std::experimental::suspend_always initial_suspend() const { return {}; }
constexpr std::experimental::suspend_always final_suspend() const { return {}; }
constexpr std::experimental::suspend_always initial_suspend() const noexcept { return {}; }
constexpr std::experimental::suspend_always final_suspend() const noexcept { return {}; }
template<
typename U = T,