aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2017-01-20 12:03:36 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2017-01-20 12:03:36 +0000
commit4dfdda108f5263c91312da23d8f3be3b685c9607 (patch)
tree20248b5dcaa4ce11e0ca39f8c3077e983ba2d368 /gcc
parent2ebd93e1d7f611a9aa06c67c7b9bd82495d6adc2 (diff)
downloadgcc-4dfdda108f5263c91312da23d8f3be3b685c9607.zip
gcc-4dfdda108f5263c91312da23d8f3be3b685c9607.tar.gz
gcc-4dfdda108f5263c91312da23d8f3be3b685c9607.tar.bz2
PR72792 detect allocator pointer types without invalid rebinding
PR libstdc++/72792 * include/bits/alloc_traits.h (__allocator_traits_base::__diff_type) (__allocator_traits_base::__size_type): Remove. (allocator_traits::_Ptr): New class template to detect const and void pointer types without instantiating pointer_traits::rebind unnecessarily. (allocator_traits::_Diff): Likewise for detecting difference_type. (allocator_traits::_Size): New class template to detect size_type without instantiating make_unsigned unnecessarily. * include/bits/ptr_traits.h (pointer_traits::element_type): Use __detected_or_t instead of __detected_or_t_. * include/std/type_traits (__detected_or_t_): Remove. * testsuite/20_util/allocator_traits/members/pointers.cc: New test. From-SVN: r244706
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions