Skip to content

Commit 98b7fd8

Browse files
Change simple-web to not use deprecated boost const_buffers_1
1 parent dfa01c1 commit 98b7fd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/client_http.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ namespace SimpleWeb {
1717

1818
public:
1919
/// Match condition for asio::read_until to match both standard and non-standard HTTP header endings.
20-
std::pair<asio::buffers_iterator<asio::const_buffers_1>, bool> operator()(asio::buffers_iterator<asio::const_buffers_1> begin, asio::buffers_iterator<asio::const_buffers_1> end) {
20+
template <typename Iterator>
21+
std::pair<Iterator, bool> operator()(Iterator begin, Iterator end) {
2122
auto it = begin;
2223
for(; it != end; ++it) {
2324
if(*it == '\n') {

0 commit comments

Comments
 (0)