diff options
author | Martin Liska <mliska@suse.cz> | 2017-05-18 16:22:01 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-05-18 14:22:01 +0000 |
commit | 671d5bcb262855ea7193f8349f38a15c388fcb6f (patch) | |
tree | 975c6f4fd6b0c9e00f69dda2bee8e4e93d6ad71b /gcc/vec.h | |
parent | dbcb3c7446c4c9f8f491db6a71bbab318918c874 (diff) | |
download | gcc-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.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |