Define __void_t and SFINAE-friendly iterator_traits.
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 Nov 2014 23:57:35 +0000 (23:57 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 11 Nov 2014 23:57:35 +0000 (23:57 +0000)
commit847e9cf81e5101f327e4cd5ac629df93b0afb581
tree8ec5894e6110647b77984b20292bdc7b63253e0c
parent3c03d39d4593eb0fd988e7067bd47fc5a58d4658
Define __void_t and SFINAE-friendly iterator_traits.

* include/std/type_traits (__void_t): Define new alias template.
(_GLIBCXX_HAS_NESTED_TYPE): Redefine using __void_t.
* include/std/functional (_Maybe_get_result_type): Likewise.
* include/bits/stl_iterator_base_types.h (__iterator_traits): Likewise.
* include/bits/uses_allocator.h (__uses_allocator_helper): Likewise.
* testsuite/20_util/bind/ref_neg.cc: Adjust dg-error.
* testsuite/20_util/reference_wrapper/typedefs-3.cc: Adjust to changes
in _GLIBCXX_HAS_NESTED_TYPE.

From-SVN: r217395
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_iterator_base_types.h
libstdc++-v3/include/bits/uses_allocator.h
libstdc++-v3/include/std/functional
libstdc++-v3/include/std/type_traits
libstdc++-v3/testsuite/20_util/bind/ref_neg.cc
libstdc++-v3/testsuite/20_util/reference_wrapper/typedefs-3.cc