mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 22:11:47 +08:00
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:
parent
9855e8a90d
commit
da40a69c9e
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user