From 69acdf6584be2a04094e27b395c50c071b2b15cf Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 28 Dec 2022 13:49:54 +0000 Subject: Use the existence of .substr(...) to test if a T is stringlike --- test/test-static-stream_support.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/test-static-stream_support.cpp (limited to 'test/test-static-stream_support.cpp') diff --git a/test/test-static-stream_support.cpp b/test/test-static-stream_support.cpp new file mode 100644 index 0000000..367d5a2 --- /dev/null +++ b/test/test-static-stream_support.cpp @@ -0,0 +1,11 @@ +#include "stream_support.hpp" + +#include +#include + +static_assert(spanable>); +static_assert(spanable>); +static_assert(spanable>); +static_assert(spanable>); +static_assert(!spanable); +static_assert(!spanable); -- cgit v1.2.3