rippled
Loading...
Searching...
No Matches
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
10namespace ripple {
11
12// Before boost 1.70, get_lowest_layer required an explicit templat parameter
13template <class T>
14decltype(auto)
15get_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
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
decltype(auto) get_lowest_layer(T &t) noexcept
Definition LowestLayer.h:15