diff options
Diffstat (limited to 'libcxx/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp')
-rw-r--r-- | libcxx/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp b/libcxx/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp index 14d7b2d47ae..b812e364bbc 100644 --- a/libcxx/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp +++ b/libcxx/test/std/diagnostics/syserr/syserr.hash/error_code.pass.cpp @@ -27,8 +27,8 @@ test(int i) { typedef std::error_code T; typedef std::hash<T> H; - static_assert((std::is_base_of<std::unary_function<T, std::size_t>, - H>::value), ""); + static_assert((std::is_same<H::argument_type, T>::value), "" ); + static_assert((std::is_same<H::result_type, std::size_t>::value), "" ); H h; T ec(i, std::system_category()); assert(h(ec) == i); |