Skip to content

Commit

Permalink
endlines
Browse files Browse the repository at this point in the history
  • Loading branch information
kelbon committed Aug 13, 2023
1 parent ded07fd commit b615227
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include/channel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,4 +293,4 @@ struct channel {

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#endif
9 changes: 1 addition & 8 deletions include/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,15 +491,8 @@ struct elements_extractor {

template <typename U>
static channel<Yield> do_extract(channel<U>& c) {
#ifndef __GNUC__
for (auto b = co_await c.begin(); b != c.end(); co_await ++b)
for (auto b = co_await c.begin(); b != c.end(); co_await (++b))
co_yield static_cast<Yield>(*b);
#else
for (auto b = co_await c.begin(); b != c.end();) {
co_yield static_cast<Yield>(*b);
co_await ++b; // workaround gcc bug "not enougth contextual info about type"
}
#endif
}
template <typename U>
static channel<Yield> do_extract(channel<U>&& c) {
Expand Down
2 changes: 1 addition & 1 deletion include/generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,4 @@ struct generator {
#endif
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#endif
2 changes: 1 addition & 1 deletion tests/test_coroutines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,4 @@ int main() {
int main() {
return 0;
}
#endif // clang bug
#endif // clang bug

0 comments on commit b615227

Please sign in to comment.