]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // |
2 | // Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com) | |
3 | // | |
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | // | |
7 | ||
8 | #ifndef BEAST_PLACEHOLDERS_HPP | |
9 | #define BEAST_PLACEHOLDERS_HPP | |
10 | ||
11 | #include <beast/config.hpp> | |
12 | #include <functional> | |
13 | ||
14 | namespace beast { | |
15 | namespace asio { | |
16 | ||
17 | namespace placeholders { | |
18 | // asio placeholders that work with std::bind | |
19 | namespace { | |
20 | static auto const error (std::placeholders::_1); | |
21 | static auto const bytes_transferred (std::placeholders::_2); | |
22 | static auto const iterator (std::placeholders::_2); | |
23 | static auto const signal_number (std::placeholders::_2); | |
24 | } | |
25 | } // placeholders | |
26 | ||
27 | } // asio | |
28 | } // beast | |
29 | ||
30 | #endif |