mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
* Concepts split up into individual files * Function definitions moved to .ipp files * Add more tests to fill gaps in coverage * Fix documentation Xsl
36 lines
734 B
C++
36 lines
734 B
C++
//
|
|
// 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.
|
|
#include <beast/bind_handler.hpp>
|
|
|
|
#include <beast/detail/unit_test/suite.hpp>
|
|
#include <functional>
|
|
|
|
namespace beast {
|
|
|
|
class bind_handler_test : public detail::unit_test::suite
|
|
{
|
|
public:
|
|
static void foo (int)
|
|
{
|
|
}
|
|
|
|
void run()
|
|
{
|
|
auto f (bind_handler (
|
|
std::bind (&foo, std::placeholders::_1),
|
|
42));
|
|
f();
|
|
pass();
|
|
}
|
|
};
|
|
|
|
BEAST_DEFINE_TESTSUITE(bind_handler,core,beast);
|
|
|
|
} // beast
|