You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code is utilized by FlatBuffers for detecting the language standard:
#ifndef FLATBUFFERS_USE_STD_SPAN
// Testing __cpp_lib_span requires including either <version> or <span>,
// both of which were added in C++20.
// See: https://en.cppreference.com/w/cpp/utility/feature_test
#if defined(__cplusplus) && __cplusplus >= 202002L
#define FLATBUFFERS_USE_STD_SPAN 1
#endif
#endif // FLATBUFFERS_USE_STD_SPAN
This results in a build error when utilizing flatbuffers::span, both with MSBuild and CMake.
Microsoft uses a fake value __cplusplus == 199711L for compatibility, and they advise using _MSVC_LANG instead
The text was updated successfully, but these errors were encountered:
The following code is utilized by FlatBuffers for detecting the language standard:
This results in a build error when utilizing flatbuffers::span, both with MSBuild and CMake.
Microsoft uses a fake value __cplusplus == 199711L for compatibility, and they advise using _MSVC_LANG instead
The text was updated successfully, but these errors were encountered: