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:
Benjamin Worpitz
2019-07-22 12:56:33 +02:00
committed by Martin Hořeňovský
parent a22b7df46c
commit e7c26f09d1
7 changed files with 94 additions and 9 deletions

View File

@@ -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