LWG 3035. std::allocator's constructors should be constexpr
authorJonathan Wakely <jwakely@redhat.com>
Mon, 18 Jun 2018 15:47:07 +0000 (16:47 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 18 Jun 2018 15:47:07 +0000 (16:47 +0100)
commit3be9ded290ac5232d52a8353235ff7d08ce02fae
tree2fdf79ef5fc39e969cacae4aa5ceca9884edcd7c
parent9a977ce3605e8b8ad92fd351bb90bc6445e8e92b
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
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/allocator.h
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/ext/malloc_allocator.h
libstdc++-v3/include/ext/new_allocator.h