From 33fa7cc71183439bd2dc5d02b98196dc1e3fd88e Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Thu, 13 Jun 2024 18:02:49 -0400 Subject: [PATCH] Expose the stream value adaptor for tests. This will permit calling this stream adaptor from various contexts which are test related. --- Testing/printDebugging.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Testing/printDebugging.h b/Testing/printDebugging.h index 1dd12e2..4b2dc44 100644 --- a/Testing/printDebugging.h +++ b/Testing/printDebugging.h @@ -39,6 +39,9 @@ namespace Alepha::Hydrogen::Testing ::detail:: printDebugging_m template< OutputMode outputMode, typename T > void printDebugging( const T &witness, const T &expected ); + + template< OutputMode outputMode, typename T > + auto streamAdaptValue( const T &v ); } using namespace std::literals::string_literals; @@ -143,7 +146,7 @@ namespace Alepha::Hydrogen::Testing ::detail:: printDebugging_m template< OutputMode outputMode, typename T > auto - streamAdaptValue( const T &v ) + exports::streamAdaptValue( const T &v ) { return Adaptor< outputMode, std::decay_t< T > >{ v }; }