Fix dynamic_extent issue when compiling with vs2017 (C++14 or C++17) (#846)

This commit is contained in:
Max Golovanov 2021-06-11 12:14:45 -07:00 committed by GitHub
parent 1f5b886bc6
commit 865b9e7961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -39,9 +39,10 @@
OPENTELEMETRY_BEGIN_NAMESPACE
namespace nostd
{
using gsl::dynamic_extent;
template <class ElementType, std::size_t Extent = gsl::dynamic_extent>
using span = gsl::span<ElementType, Extent>;
}
} // namespace nostd
OPENTELEMETRY_END_NAMESPACE
# define HAVE_SPAN
# else