vec: Silence clang warning

I noticed during compatibility testing that clang warns that this
operator won't be implicitly const in C++14 onwards.

gcc/
	* vec.h (vnull::operator vec<T, A, L>): Make const.
This commit is contained in:
Richard Sandiford 2020-12-13 10:41:06 +00:00
parent 9855e8a90d
commit da40a69c9e

View File

@ -550,7 +550,7 @@ vec_copy_construct (T *dst, const T *src, unsigned n)
struct vnull
{
template <typename T, typename A, typename L>
CONSTEXPR operator vec<T, A, L> () { return vec<T, A, L>(); }
CONSTEXPR operator vec<T, A, L> () const { return vec<T, A, L>(); }
};
extern vnull vNULL;