LWG 3035. std::allocator's constructors should be constexpr
commit1143dcb41617e18796fa3f68f1d3d409ee9ab03a
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Jun 2018 15:47:07 +0000 (18 15:47 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Jun 2018 15:47:07 +0000 (18 15:47 +0000)
tree2fdf79ef5fc39e969cacae4aa5ceca9884edcd7c
parent65d4987efad0c26aa86b606f2fe1b9f5e47e3fa8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261703 138bc75d-0d04-0410-961f-82ee72b054a4
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