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.
This patch uses a comma operator to workaround this problem.
Differential D26147
Fix archetypes.hpp under libcpp-no-extensions and std level < 14 rogfer01 on Oct 31 2016, 6:55 AM. Authored by
Details 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. This patch uses a comma operator to workaround this problem.
Diff Detail
|