diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-06-18 16:47:07 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-06-18 16:47:07 +0100 |
commit | 3be9ded290ac5232d52a8353235ff7d08ce02fae (patch) | |
tree | 2fdf79ef5fc39e969cacae4aa5ceca9884edcd7c /gcc/builtins.c | |
parent | 9a977ce3605e8b8ad92fd351bb90bc6445e8e92b (diff) | |
download | gcc-3be9ded290ac5232d52a8353235ff7d08ce02fae.zip gcc-3be9ded290ac5232d52a8353235ff7d08ce02fae.tar.gz gcc-3be9ded290ac5232d52a8353235ff7d08ce02fae.tar.bz2 |
LWG 3035. std::allocator's constructors should be constexpr
LWG 3035. std::allocator's constructors should be constexpr
* include/bits/allocator.h (allocator): Add constexpr to constructors
for C++2a. Replace dynamic exception specifications with NOTHROW
macro.
(allocator, operator==, operator!=): Replace USE_NOEXCEPT macro with
NOTHROW.
* include/bits/c++config (_GLIBCXX20_CONSTEXPR): Define.
* include/ext/malloc_allocator.h (malloc_allocator): Add constexpr
to constructors for C++2a.
* include/ext/new_allocator.h (new_allocator): Likewise.
From-SVN: r261703
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions