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/Jamfile.jam | 1 + test/test-static-stream_support.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/test-static-stream_support.cpp (limited to 'test') diff --git a/test/Jamfile.jam b/test/Jamfile.jam index 32c522b..6a83f9c 100644 --- a/test/Jamfile.jam +++ b/test/Jamfile.jam @@ -33,3 +33,4 @@ run test-enumDetails.cpp ; run test-render.cpp ; run test-glContextBhvr.cpp ; compile test-static-enumDetails.cpp ; +compile 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