errors in appveyor are indicating that AsWritableByesCompilersFor needs to be static.

This commit is contained in:
Jordan Maples [MSFT] 2020-02-14 15:44:58 -08:00
parent 41ae38f197
commit 67a7f7eaef

View File

@ -42,10 +42,10 @@ static_assert(!std::is_convertible<Derived (*)[], Base (*)[]>::value,
"!std::is_convertible<Derived(*)[], Base(*)[]>"); "!std::is_convertible<Derived(*)[], Base(*)[]>");
template <typename U, typename = void> template <typename U, typename = void>
constexpr bool AsWritableBytesCompilesFor = false; static constexpr bool AsWritableBytesCompilesFor = false;
template <typename U> template <typename U>
constexpr bool AsWritableBytesCompilesFor<U, void_t<decltype(as_writable_bytes(declval<U>()))>> = static constexpr bool AsWritableBytesCompilesFor<U, void_t<decltype(as_writable_bytes(declval<U>()))>> =
true; true;
TEST(span_test, std_span_compatibilty_assertion_tests) TEST(span_test, std_span_compatibilty_assertion_tests)