meson: Fix span check for c++20
span-lite doesn't have a dynamic_extent defined in this mode, it's safer
to use span.
Change-Id: I7e135dbc0d4f1d08d6abb5b91e287f01112da73b
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/meson.build b/src/meson.build
index 6a5b73d..dc4e02f 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -20,7 +20,7 @@
span_dep = dependency('span-lite', required: false)
has_span = meson.get_compiler('cpp').has_header_symbol(
'nonstd/span.hpp',
- 'nonstd::dynamic_extent',
+ 'nonstd::span<int>',
dependencies: span_dep,
required: false)
if not has_span