2012-07-16 16:17:34 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// <functional>
|
|
|
|
|
|
|
|
// class function<R(ArgTypes...)>
|
|
|
|
|
|
|
|
// template<class F> function(F);
|
|
|
|
|
|
|
|
// Allow incomplete argument types in the __is_callable check
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
|
|
struct X{
|
2013-07-08 21:06:38 +00:00
|
|
|
typedef std::function<void(X&)> callback_type;
|
|
|
|
virtual ~X() {}
|
2012-07-16 16:17:34 +00:00
|
|
|
private:
|
2013-07-08 21:06:38 +00:00
|
|
|
callback_type _cb;
|
2012-07-16 16:17:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
}
|