1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <functional>
11 
12 // class function<R(ArgTypes...)>
13 
14 // template<class F> function(F);
15 
16 // Allow incomplete argument types in the __is_callable check
17 
18 #include <functional>
19 
20 struct X{
21     typedef std::function<void(X&)> callback_type;
~XX22     virtual ~X() {}
23 private:
24     callback_type _cb;
25 };
26 
main()27 int main()
28 {
29 }
30