From e717204ef4ee30a98fa291f91562cc1701f5b688 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 27 May 2024 11:10:35 -0400 Subject: [PATCH] Work around gcc10 partial c++20-isms (#100) --- include/sst/basic-blocks/concepts/concepts.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/sst/basic-blocks/concepts/concepts.h b/include/sst/basic-blocks/concepts/concepts.h index 9a374ac..91e1e51 100644 --- a/include/sst/basic-blocks/concepts/concepts.h +++ b/include/sst/basic-blocks/concepts/concepts.h @@ -29,7 +29,8 @@ #include -static_assert(__cplusplus >= 202002L, "sst-basic-blocks requires C++20; please update your build"); +// Why this form? gcc10 works but provides -std=c++2a in some cases +static_assert(__cplusplus > 201703L, "sst-basic-blocks requires C++20; please update your build"); namespace sst::basic_blocks::concepts {