mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-24 21:15:58 +00:00
Tidy up core sources:
The core headers are moved to their own directory (but remain in the same namespace).
This commit is contained in:
23
test/core/handler_concepts.cpp
Normal file
23
test/core/handler_concepts.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// 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/core/handler_concepts.hpp>
|
||||
|
||||
namespace beast {
|
||||
|
||||
namespace {
|
||||
struct T
|
||||
{
|
||||
void operator()(int);
|
||||
};
|
||||
}
|
||||
|
||||
static_assert(is_CompletionHandler<T, void(int)>::value, "");
|
||||
static_assert(! is_CompletionHandler<T, void(void)>::value, "");
|
||||
|
||||
} // beast
|
||||
Reference in New Issue
Block a user