@@ -18,6 +18,9 @@ Boost::ASIO low-level redis client (connector)
1818
1919## Changelog
2020
21+ ### 0.08
22+ - relaxed c++ compiler requirements: c++11 can be used instead of c++14
23+
2124### 0.07
2225- minor parsing speed improvements (upto 10% in synthetic tests)
2326- fix compilation issues on boost::asio 1.70
@@ -213,6 +216,7 @@ in case you don't want the throw-exception behaviour.
213216...
214217namespace r = bredis;
215218namespace asio = boost::asio;
219+ namespace sys = boost::system;
216220...
217221using socket_t = asio::ip::tcp::socket;
218222using Buffer = boost::asio::streambuf;
@@ -229,10 +233,10 @@ socket.connect(end_point);
229233...
230234Buffer tx_buff, rx_buff;
231235c.async_write(
232- tx_buff, r::single_command_t{"llen", "my-queue"}, [ &] (const auto &error_code, auto bytes_transferred) {
236+ tx_buff, r::single_command_t{"llen", "my-queue"}, [ &] (const sys::error_code &ec, std::size_t bytes_transferred) {
233237 /* tx_buff must be consumed when it is no longer needed * /
234238 tx_buff.consume(bytes_transferred);
235- c.async_read(rx_buff, [ &] (const auto &error_code , result_t &&r) {
239+ c.async_read(rx_buff, [ &] (const sys::error_code &ec , result_t &&r) {
236240 /* see above how to work with the result * /
237241 auto extract = boost::apply_visitor(r::extractor<Iterator >(), r.result);
238242 auto &queue_size = boost::get< r::extracts::int_t > (extract);
@@ -350,7 +354,7 @@ in the transaction (i.e. results for `INCR` and `GET` above)
350354
351355```cpp
352356Buffer rx_buff;
353- c.async_read(rx_buff, [&](const auto& error_code, auto && r){
357+ c.async_read(rx_buff, [&](const sys:: error_code &ec, result_t && r){
354358 auto &replies = boost::get<r::markers::array_holder_t<Iterator>>(r.result);
355359 /* scan stream for OK, QUEUED, QUEUED */
356360 ...
0 commit comments