Skip to content

Fix C++20 coroutine compilation and strictness issues - #2504

Open
getasewtilahun wants to merge 1 commit into
ton-blockchain:masterfrom
getasewtilahun:fix/modern-compiler-compat
Open

Fix C++20 coroutine compilation and strictness issues#2504
getasewtilahun wants to merge 1 commit into
ton-blockchain:masterfrom
getasewtilahun:fix/modern-compiler-compat

Conversation

@getasewtilahun

Copy link
Copy Markdown
  • Add tag constructor to promise_value::ExternalResult to fix instantiation without aggregate construction.
  • Replace empty co_return statements returning Task with explicit co_return td::Unit{} to satisfy stricter compiler check constraints.
  • Refactor inline coroutine lambda inside OverlayImpl::receive_message to a helper function process_broadcast_helper to simplify compilation context.

- Add tag constructor to promise_value::ExternalResult to fix instantiation without aggregate construction.
- Replace empty co_return statements returning Task<Unit> with explicit co_return td::Unit{} to satisfy stricter compiler check constraints.
- Refactor inline coroutine lambda inside OverlayImpl::receive_message to a helper function process_broadcast_helper to simplify compilation context.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant