From 3544d9c12fcb66ff8d4dd947137a769eb99f26c2 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 19 Mar 2024 21:51:30 +0100 Subject: ring: add pre cpp17 take() fn --- test/ring.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ring.cc') diff --git a/test/ring.cc b/test/ring.cc index a42efaa..657fdfa 100644 --- a/test/ring.cc +++ b/test/ring.cc @@ -56,14 +56,14 @@ int main() { assert(!r.is_empty()); assert(r.is_full()); -#if __cplusplus >= 201703L auto v = r.take(); +#if __cplusplus >= 201703L assert(v.has_value()); +#endif assert(r.size() == 7); assert(!r.is_empty()); assert(!r.is_full()); -#endif assert(m::cnt == 8); } -- cgit v1.2.3