Skip to content

Fix several [[nodiscard]] warnings#8616

Closed
glebm wants to merge 6 commits into
diasurgical:masterfrom
glebm:fix-nodiscard
Closed

Fix several [[nodiscard]] warnings#8616
glebm wants to merge 6 commits into
diasurgical:masterfrom
glebm:fix-nodiscard

Conversation

@glebm

@glebm glebm commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Based on top of #8615

These started appearing after migrating to std::expected, which is declared as class [[nodiscard]] expected.

glebm and others added 6 commits July 13, 2026 11:03
Now that the project targets C++23, use the standard library's
std::expected instead of the vendored tl::expected polyfill:

- tl::expected -> std::expected, tl::unexpected/tl::make_unexpected -> std::unexpected
- .map()/.map_error() -> .transform()/.transform_error()
- #include <expected.hpp> -> #include <expected>, grouped with std headers
- Remove 3rdParty/tl/expected.hpp (the tl target remains for function_ref.hpp)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
These toolchains haven't updated their libcxx in years.
Disables these CI builds in order to avoid being stuck on old language level support.

Once / if the toolchains are updated, we can re-enable these platforms.

Toolchain update bugs:
* PS4: OpenOrbis/OpenOrbis-PS4-Toolchain#262
* Xbox nxdk: XboxDev/nxdk-libcxx#3
Includes
diasurgical/asio@112f011,
which fixes a C++23 deprecation warning
@glebm
glebm marked this pull request as ready for review July 13, 2026 17:09
@glebm

glebm commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator Author

To avoid rebasing 3 PRs every time, I'm consolidating this PR into the std-format one.

@glebm glebm closed this Jul 19, 2026
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