Files
beast/test/core/bind_handler.cpp
T

36 lines
724 B
C++
Raw Normal View History

2016-04-01 11:46:32 -04:00
//
// Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Test that header file is self-contained.
2016-05-07 14:57:15 -04:00
#include <beast/core/bind_handler.hpp>
2016-04-01 11:46:32 -04:00
2016-05-06 19:14:17 -04:00
#include <beast/unit_test/suite.hpp>
2016-04-19 20:29:16 -04:00
#include <functional>
namespace beast {
2016-05-06 19:14:17 -04:00
class bind_handler_test : public unit_test::suite
2016-04-19 20:29:16 -04:00
{
public:
static void foo (int)
{
}
void run()
{
auto f (bind_handler (
std::bind (&foo, std::placeholders::_1),
42));
f();
pass();
}
};
2016-04-26 13:44:51 -04:00
BEAST_DEFINE_TESTSUITE(bind_handler,core,beast);
2016-04-19 20:29:16 -04:00
} // beast