llvm-project/libcxx/test/std/utilities/function.objects
Eric Fiselier 45b7b44867 Implement LWG 2148: Make non-enum default hash specialization well-formed
Summary:
This patch removes the static_assert for non-enum types in the primary hash template. Instead non-enum types create a hash<T> specialization that is not constructible nor callable.

See also:
  * http://cplusplus.github.io/LWG/lwg-active.html#2543
  * https://llvm.org/bugs/show_bug.cgi?id=28917

Reviewers: mclow.lists, EricWF

Subscribers: mehdi_amini, cfe-commits

Differential Revision: https://reviews.llvm.org/D23331

llvm-svn: 278300
2016-08-10 22:45:26 +00:00
..
arithmetic.operations Remove trailing whitespace in test suite. Approved by Marshall Clow. 2016-06-01 21:35:39 +00:00
bind Guard libc++ specific tests SFINAE on std::bind's call operator. Patch from STL@microsoft.com 2016-07-24 23:08:21 +00:00
bitwise.operations Remove trailing whitespace in test suite. Approved by Marshall Clow. 2016-06-01 21:35:39 +00:00
comparisons Mark LWG issue 2450 as complete. 2016-06-02 03:12:44 +00:00
func.def
func.invoke Don't use C++17 terse static assert. Patch from STL@microsoft.com 2016-06-22 01:10:14 +00:00
func.memfn Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 2016-06-14 21:31:42 +00:00
func.not_fn Implement P0358r1. Fixes for not_fn. 2016-06-27 00:40:41 +00:00
func.require Move INVOKE tests into test/libcxx sub-tree. 2016-04-29 01:52:57 +00:00
func.wrap Implement LWG 2393. Check for LValue-callability. 2016-07-24 04:16:40 +00:00
logical.operations Remove trailing whitespace in test suite. Approved by Marshall Clow. 2016-06-01 21:35:39 +00:00
negators In C++03, a bunch of the arithmetic/logical/comparison functors (such as negate/bit_not.pass/logical_not) were defined as deriving from unary_funtion. That restriction was removed in C++11, but the tests still check for this. Change the test to look for the embedded types first_argument/second_argument/result_type. No change to the library, just more standards-compliant tests. Thanks to STL @ Microsoft for the suggestion. 2015-01-07 21:51:30 +00:00
refwrap Remove trailing whitespace in test suite. Approved by Marshall Clow. 2016-06-01 21:35:39 +00:00
unord.hash Implement LWG 2148: Make non-enum default hash specialization well-formed 2016-08-10 22:45:26 +00:00