From e5407178d6789ccf462dbb39ad0acc5cbde6581c Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 22 Jul 2015 04:14:38 +0000 Subject: Cleanup <__functional_03> <__functional_03> provides the C++03 definitions for std::memfun and std::function. However the interaction between and <__functional_03> is ugly and duplicates code needlessly. This patch cleans up how the two headers work together. The major changes are: - Provide placeholders, is_bind_expression and is_placeholder in for both C++03 and C++11. - Provide bad_function_call, function fwd decl, __maybe_derive_from_unary_function and __maybe_derive_from_binary_function in for both C++03 and C++11. - Move the <__functional_03> include to the bottom of . This makes it easier to see how <__functional_03> interacts with - Remove a commented out implementation of bind in C++03. It's never going to get implemented. - Mark almost all std::bind tests as unsupported in C++03. std::is_placeholder works in C++03 and C++11. std::is_bind_expression is provided in C++03 but always returns false. llvm-svn: 242870 --- .../function.objects/bind/func.bind/func.bind.bind/nested.pass.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/nested.pass.cpp') diff --git a/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/nested.pass.cpp b/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/nested.pass.cpp index 12720f7b550..f61d93aefd8 100644 --- a/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/nested.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/nested.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03 + // // template -- cgit v1.2.3