From 84809be7e7db4a254d2b3ea4a69339f583735d87 Mon Sep 17 00:00:00 2001 From: Vladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com> Date: Fri, 23 Oct 2020 04:07:29 +0700 Subject: [PATCH] Fix typo in flatbuffers::span declaration. (#6202) --- include/flatbuffers/stl_emulation.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/flatbuffers/stl_emulation.h b/include/flatbuffers/stl_emulation.h index 8a557bc..66bd620 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); } -- 2.7.4