[libcxx] r274205 - Fix unary_function inheritance assumption. Patch from STL at microsoft.com

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 29 21:28:12 PDT 2016


Author: ericwf
Date: Wed Jun 29 23:28:12 2016
New Revision: 274205

URL: http://llvm.org/viewvc/llvm-project?rev=274205&view=rev
Log:
Fix unary_function inheritance assumption. Patch from STL at microsoft.com

Modified:
    libcxx/trunk/test/std/containers/sequences/vector.bool/vector_bool.pass.cpp

Modified: libcxx/trunk/test/std/containers/sequences/vector.bool/vector_bool.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/vector.bool/vector_bool.pass.cpp?rev=274205&r1=274204&r2=274205&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/vector.bool/vector_bool.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/vector.bool/vector_bool.pass.cpp Wed Jun 29 23:28:12 2016
@@ -41,8 +41,8 @@ int main()
     {
     typedef std::vector<bool, min_allocator<bool>> 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), "" );
     bool ba[] = {true, false, true, true, false};
     T vb(std::begin(ba), std::end(ba));
     H h;




More information about the cfe-commits mailing list