Skip to content

Commit a87e97f

Browse files
fghzxmlewissbaker
authored andcommitted
generator_promise::{initial,final}_suspend() can be noexcept
1 parent 8929f9c commit a87e97f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/cppcoro/generator.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ namespace cppcoro
3232

3333
generator<T> get_return_object() noexcept;
3434

35-
constexpr std::experimental::suspend_always initial_suspend() const { return {}; }
36-
constexpr std::experimental::suspend_always final_suspend() const { return {}; }
35+
constexpr std::experimental::suspend_always initial_suspend() const noexcept { return {}; }
36+
constexpr std::experimental::suspend_always final_suspend() const noexcept { return {}; }
3737

3838
template<
3939
typename U = T,

0 commit comments

Comments
 (0)