mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-14 17:35:39 +02:00
Fix non-default-constructible type lists used in TEMPLATE_LIST_TEST_CASE (#1697)
* Fix non-default-constructible type lists used in TEMPLATE_LIST_TEST_CASE std::tuple is not default constructible when the first type is not default-constuctible. Therefore it can not be instantiated. to circumvent this, we have to use std::declval in the unevaluate decltype context.
This commit is contained in:

committed by
Martin Hořeňovský

parent
a22b7df46c
commit
e7c26f09d1
@@ -1380,6 +1380,6 @@ due to unexpected exception with message:
|
||||
Why would you throw a std::string?
|
||||
|
||||
===============================================================================
|
||||
test cases: 295 | 221 passed | 70 failed | 4 failed as expected
|
||||
assertions: 1550 | 1398 passed | 131 failed | 21 failed as expected
|
||||
test cases: 298 | 224 passed | 70 failed | 4 failed as expected
|
||||
assertions: 1553 | 1401 passed | 131 failed | 21 failed as expected
|
||||
|
||||
|
Reference in New Issue
Block a user