From fc02d1a0c3b27a63be75398b6dd108e17863520b Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 13 Jun 2024 18:03:33 -0400 Subject: [PATCH] Relax the test print debugging rules. A type which cannot be printed when streamed in "Relaxed" mode will simply print the typeid and that's it. This is opposed to its original behaviour which would be a compile time error. --- Testing/printDebugging.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Testing/printDebugging.h b/Testing/printDebugging.h index 4b2dc44..7e0229f 100644 --- a/Testing/printDebugging.h +++ b/Testing/printDebugging.h @@ -127,7 +127,11 @@ namespace Alepha::Hydrogen::Testing ::detail:: printDebugging_m } else { - static_assert( dependent_value< false, T >, "One of the types used in the testing table does not support stringification." ); + if constexpr( outputMode == OutputMode::Relaxed ) + { + oss << ""; + } + else static_assert( dependent_value< false, T >, "One of the types used in the testing table does not support stringification." ); } }