HomePhabricator

Fix archetypes.hpp under libcpp-no-extensions and std level < 14

Description

Fix archetypes.hpp under libcpp-no-extensions and std level < 14

Under -fno-exceptions TEST_THROW becomes abort / __builtin_abort which returns
void. This causes a type mismatch in the conditional operator when testing the
library in C++98,03,11 modes.

Use a comma operator to workaround this problem.

Differential Revision: https://reviews.llvm.org/D26147

Details

Committed
rogfer01Oct 31 2016, 7:14 AM
Differential Revision
D26147: Fix archetypes.hpp under libcpp-no-extensions and std level < 14
Branches
Unknown
Tags
Unknown