Re: [PATCH] PR c++/91369 Implement P0784R7 changes to allocation and construction

2019-10-29 Thread Jonathan Wakely
On 29/10/19 09:37 +, Jonathan Wakely wrote: On 29/10/19 10:23 +0100, Stephan Bergmann wrote: On 23/10/2019 21:27, Jonathan Wakely wrote: This patch is the first part of library support for constexpr std::vector and std::string. This only includes the changes to std::allocator, std::allocato

Re: [PATCH] PR c++/91369 Implement P0784R7 changes to allocation and construction

2019-10-29 Thread Jonathan Wakely
On 29/10/19 10:23 +0100, Stephan Bergmann wrote: On 23/10/2019 21:27, Jonathan Wakely wrote: This patch is the first part of library support for constexpr std::vector and std::string. This only includes the changes to std::allocator, std::allocator_traits, std::construct_at, std::destroy_at, std

Re: [PATCH] PR c++/91369 Implement P0784R7 changes to allocation and construction

2019-10-29 Thread Stephan Bergmann
On 23/10/2019 21:27, Jonathan Wakely wrote: This patch is the first part of library support for constexpr std::vector and std::string. This only includes the changes to std::allocator, std::allocator_traits, std::construct_at, std::destroy_at, std::destroy and std::destroy_n. [...] Tested x86_6

Re: [PATCH] PR c++/91369 Implement P0784R7 changes to allocation and construction

2019-10-24 Thread Jonathan Wakely
On 24/10/19 15:31 +0100, Jonathan Wakely wrote: On 23/10/19 20:27 +0100, Jonathan Wakely wrote: --- a/libstdc++-v3/include/bits/allocator.h +++ b/libstdc++-v3/include/bits/allocator.h @@ -154,13 +154,42 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX20_CONSTEXPR allocator(const allo

Re: [PATCH] PR c++/91369 Implement P0784R7 changes to allocation and construction

2019-10-24 Thread Jonathan Wakely
On 23/10/19 20:27 +0100, Jonathan Wakely wrote: --- a/libstdc++-v3/include/bits/allocator.h +++ b/libstdc++-v3/include/bits/allocator.h @@ -154,13 +154,42 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX20_CONSTEXPR allocator(const allocator<_Tp1>&) _GLIBCXX_NOTHROW { } +#if __cplusp

[PATCH] PR c++/91369 Implement P0784R7 changes to allocation and construction

2019-10-23 Thread Jonathan Wakely
This patch is the first part of library support for constexpr std::vector and std::string. This only includes the changes to std::allocator, std::allocator_traits, std::construct_at, std::destroy_at, std::destroy and std::destroy_n. std::allocator::allocate and std::allocator::deallocate need to