diff --git a/include/flatbuffers/stl_emulation.h b/include/flatbuffers/stl_emulation.h index 8a557bc7a..66bd620d2 100644 --- a/include/flatbuffers/stl_emulation.h +++ b/include/flatbuffers/stl_emulation.h @@ -467,7 +467,7 @@ FLATBUFFERS_CONSTEXPR_CPP11 bool operator==(const Optional& lhs, const Option #if defined(FLATBUFFERS_USE_STD_SPAN) inline constexpr std::size_t dynamic_extent = std::dynamic_extent; template - using Span = std::span; + using span = std::span; #else // !defined(FLATBUFFERS_USE_STD_SPAN) FLATBUFFERS_CONSTEXPR std::size_t dynamic_extent = static_cast(-1); @@ -636,25 +636,25 @@ class span FLATBUFFERS_FINAL_CLASS { } template - FLATBUFFERS_CONSTEXPR_CPP11 + FLATBUFFERS_CONSTEXPR_CPP11 flatbuffers::span make_span(std::array &arr) FLATBUFFERS_NOEXCEPT { return span(arr); } template - FLATBUFFERS_CONSTEXPR_CPP11 + FLATBUFFERS_CONSTEXPR_CPP11 flatbuffers::span make_span(const std::array &arr) FLATBUFFERS_NOEXCEPT { return span(arr); } template - FLATBUFFERS_CONSTEXPR_CPP11 + FLATBUFFERS_CONSTEXPR_CPP11 flatbuffers::span make_span(U *first, std::size_t count) FLATBUFFERS_NOEXCEPT { return span(first, count); } template - FLATBUFFERS_CONSTEXPR_CPP11 + FLATBUFFERS_CONSTEXPR_CPP11 flatbuffers::span make_span(const U *first, std::size_t count) FLATBUFFERS_NOEXCEPT { return span(first, count); }