Skip to content

Commit b8a38cf

Browse files
Change simple-web to not use deprecated boost const_buffers_1
1 parent 6bde986 commit b8a38cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/client_http.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ 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+
// LOCAL MODIFICATION: We changed the operator() type to compile with boost 1.87 which removed const_buffers_1
21+
// https://gitlab.com/eidheim/Simple-Web-Server/-/merge_requests/279
22+
template <typename Iterator>
23+
std::pair<Iterator, bool> operator()(Iterator begin, Iterator end) {
2124
auto it = begin;
2225
for(; it != end; ++it) {
2326
if(*it == '\n') {

0 commit comments

Comments
 (0)