Skip to content

Commit

Permalink
generator_promise::{initial,final}_suspend() can be noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
fghzxm authored and lewissbaker committed Oct 12, 2020
1 parent 8929f9c commit a87e97f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cppcoro/generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a87e97f

Please sign in to comment.