1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9// <functional>
10// pointer_to_binary_function
11
12// UNSUPPORTED: c++03, c++11, c++14
13// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
14
15#include <functional>
16#include <type_traits>
17#include <cassert>
18
19#include "test_macros.h"
20
21double binary_f(int i, short j) {return i - j + .75;}
22
23int main(int, char**)
24{
25 typedef std::pointer_to_binary_function<int, short, double> F;
26
27 return 0;
28}
29

source code of libcxx/test/std/depr/depr.function.objects/depr.adaptors/depr.function.pointer.adaptors/pointer_to_binary_function.cxx1z.compile.fail.cpp