diff options
| author | Eric Fiselier <eric@efcs.ca> | 2019-12-16 18:23:39 -0500 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2019-12-16 18:38:58 -0500 |
| commit | 549545b64aab77d2a1784062451ee1c33f8324d2 (patch) | |
| tree | 54085e795e52088e247d055f92782ad4e002d2e3 /libcxx/include/list | |
| parent | f63b64c0c3b486f164c3c66cce9f13df2bac6b6e (diff) | |
| download | bcm5719-llvm-549545b64aab77d2a1784062451ee1c33f8324d2.tar.gz bcm5719-llvm-549545b64aab77d2a1784062451ee1c33f8324d2.zip | |
[libc++] Rework compressed pair constructors.
This patch de-duplicates most compressed pair constructors
to use the same code in C++11 and C++03.
Part of doing that is deleting the "__second_tag()" and replacing
it with a "__value_init_tag()" which has the same effect, but
allows for the removal of the special "one-arg" first element
constructor.
This patch is intended to have no semantic change.
Diffstat (limited to 'libcxx/include/list')
| -rw-r--r-- | libcxx/include/list | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/list b/libcxx/include/list index cf131a1f76b..ae318ead31d 100644 --- a/libcxx/include/list +++ b/libcxx/include/list @@ -715,7 +715,7 @@ template <class _Tp, class _Alloc> inline __list_imp<_Tp, _Alloc>::__list_imp() _NOEXCEPT_(is_nothrow_default_constructible<__node_allocator>::value) - : __size_alloc_(0) + : __size_alloc_(0, __default_init_tag()) { } |

