rippled
Loading...
Searching...
No Matches
include
xrpl
server
detail
LowestLayer.h
1
#ifndef XRPL_SERVER_LOWESTLAYER_H_INCLUDED
2
#define XRPL_SERVER_LOWESTLAYER_H_INCLUDED
3
4
#if BOOST_VERSION >= 107000
5
#include <boost/beast/core/stream_traits.hpp>
6
#else
7
#include <boost/beast/core/type_traits.hpp>
8
#endif
9
10
namespace
ripple
{
11
12
// Before boost 1.70, get_lowest_layer required an explicit templat parameter
13
template
<
class
T>
14
decltype
(
auto
)
15
get_lowest_layer
(T& t)
noexcept
16
{
17
#if BOOST_VERSION >= 107000
18
return
boost::beast::get_lowest_layer(t);
19
#else
20
return
t.lowest_layer();
21
#endif
22
}
23
24
}
// namespace ripple
25
26
#endif
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:6
ripple::get_lowest_layer
decltype(auto) get_lowest_layer(T &t) noexcept
Definition
LowestLayer.h:15
Generated by
1.9.8