Skip to content

Commit

Permalink
fix clang compile
Browse files Browse the repository at this point in the history
  • Loading branch information
liss-h committed Jan 6, 2025
1 parent 8e0dd3c commit b793fe0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions include/dice/template-library/variant2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
#include <utility>
#include <variant>

#define DICE_TEMPLATELIBRARY_DETAIL_VARIANT2_TRY(noexcept_spec, action) \
if constexpr (noexcept_spec) { \
(action); \
} else { \
try { \
(action); \
} catch (...) { \
discriminant_ = discriminant_type::ValuelessByException; \
throw; \
} \
#define DICE_TEMPLATELIBRARY_DETAIL_VARIANT2_TRY(noexcept_spec, action_block) \
if constexpr (noexcept_spec) { \
action_block \
} else { \
try { \
action_block \
} catch (...) { \
discriminant_ = discriminant_type::ValuelessByException; \
throw; \
} \
}


Expand Down

0 comments on commit b793fe0

Please sign in to comment.