summaryrefslogtreecommitdiffstats
path: root/include/__tree
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-06-30 15:11:53 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-06-30 15:11:53 +0000
commit0c99f18af4df4906750290d50f3d168aaf45c0aa (patch)
treee27937c88353dea0f8a5e4aa3600bd4c49a7d676 /include/__tree
parent3e9545e035fc07f8cf419b446983e289f8df187b (diff)
downloadexternal_libcxx-0c99f18af4df4906750290d50f3d168aaf45c0aa.tar.gz
external_libcxx-0c99f18af4df4906750290d50f3d168aaf45c0aa.tar.bz2
external_libcxx-0c99f18af4df4906750290d50f3d168aaf45c0aa.zip
Implement LWG#2436: 'Comparators for associative containers should always be CopyConstructible'
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@274235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/__tree')
-rw-r--r--include/__tree2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/__tree b/include/__tree
index 89707e38f..e4863a02a 100644
--- a/include/__tree
+++ b/include/__tree
@@ -946,6 +946,8 @@ private:
typedef allocator_traits<__node_base_allocator> __node_base_traits;
static_assert((is_same<__node_base_pointer, typename __node_base_traits::pointer>::value),
"Allocator does not rebind pointers in a sane manner.");
+ static_assert((is_copy_constructible<value_compare>::value),
+ "Comparator must be copy-constructible.");
private:
__node_pointer __begin_node_;