• QuadriLiteral
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

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

    • porgamrer
      link
      fedilink
      arrow-up
      3
      ·
      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.