aboutsummaryrefslogtreecommitdiff
path: root/gcc/vec.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-05-18 16:22:01 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-05-18 14:22:01 +0000
commit671d5bcb262855ea7193f8349f38a15c388fcb6f (patch)
tree975c6f4fd6b0c9e00f69dda2bee8e4e93d6ad71b /gcc/vec.h
parentdbcb3c7446c4c9f8f491db6a71bbab318918c874 (diff)
downloadgcc-671d5bcb262855ea7193f8349f38a15c388fcb6f.zip
gcc-671d5bcb262855ea7193f8349f38a15c388fcb6f.tar.gz
gcc-671d5bcb262855ea7193f8349f38a15c388fcb6f.tar.bz2
Define CONSTEXPR macro and use it in vec.h.
2017-05-18 Martin Liska <mliska@suse.cz> * ansidecl.h: Define CONSTEXPR macro. 2017-05-18 Martin Liska <mliska@suse.cz> * vec.h (struct vnull): Use it. From-SVN: r248205
Diffstat (limited to 'gcc/vec.h')
-rw-r--r--gcc/vec.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/vec.h b/gcc/vec.h
index 914f89c..755a1f8 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -416,10 +416,7 @@ struct GTY((user)) vec
struct vnull
{
template <typename T, typename A, typename L>
-#if __cpp_constexpr >= 200704
- constexpr
-#endif
- operator vec<T, A, L> () { return vec<T, A, L>(); }
+ CONSTEXPR operator vec<T, A, L> () { return vec<T, A, L>(); }
};
extern vnull vNULL;