diff --git a/include/flatbuffers/base.h b/include/flatbuffers/base.h index 5fe501779..e09e82808 100644 --- a/include/flatbuffers/base.h +++ b/include/flatbuffers/base.h @@ -158,14 +158,14 @@ // to detect a header that provides an implementation #if defined(__has_include) // Check for std::string_view (in c++17) - #if __has_include() && (__cplusplus > 201402) + #if __has_include() && (__cplusplus >= 201606) #include namespace flatbuffers { typedef std::string_view string_view; } #define FLATBUFFERS_HAS_STRING_VIEW 1 // Check for std::experimental::string_view (in c++14, compiler-dependent) - #elif __has_include() && (__cplusplus > 201103) + #elif __has_include() && (__cplusplus >= 201411) #include namespace flatbuffers { typedef std::experimental::string_view string_view;