this post was submitted on 11 Nov 2023
20 points (88.5% liked)

C++

1783 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] QuadriLiteral 2 points 1 year ago (1 children)

BOOST_OUTCOME_TRYX may be what you're looking for. It's only available on gcc and clang though.

[โ€“] porgamrer 3 points 1 year ago

Yeah, I came across that. I presume it just uses the GCC statement expressions extension under the hood.

No can do though, it has to work with MSVC too.