From 5349786bf9829c55e4f04e082311dd410dd10ed9 Mon Sep 17 00:00:00 2001 From: Benjamin Worpitz Date: Sat, 17 Aug 2019 11:48:42 +0200 Subject: [PATCH] Allow to use non-copyable and non-movable types in TEMPLATE_LIST_TEST_CASE The parameter given to `convert` may not be copyable therefore it has to be captured by const reference. For example an `std::tuple` that contains a non-copyable type is itself non-copyable. The NonDefaultConstructible test-case was reduced by one example type because it did not add any value. --- include/internal/catch_preprocessor.hpp | 2 +- .../Baselines/compact.sw.approved.txt | 1 + .../Baselines/console.std.approved.txt | 4 ++-- .../Baselines/console.sw.approved.txt | 24 ++++++++++++++----- .../SelfTest/Baselines/junit.sw.approved.txt | 5 ++-- .../SelfTest/Baselines/xml.sw.approved.txt | 21 ++++++++++++---- projects/SelfTest/UsageTests/Misc.tests.cpp | 17 ++++++++++++- 7 files changed, 57 insertions(+), 17 deletions(-) diff --git a/include/internal/catch_preprocessor.hpp b/include/internal/catch_preprocessor.hpp index bd66db161c..8d7bbe9286 100644 --- a/include/internal/catch_preprocessor.hpp +++ b/include/internal/catch_preprocessor.hpp @@ -118,7 +118,7 @@ template