Skip to content

Commit 31f2fa2

Browse files
committed
Fixed compilation error when built-time debug level is 'trace'. Closes #161
1 parent 855349b commit 31f2fa2

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if (DEFINED ENV{RESTC_CPP_VERSION})
55
endif()
66

77
if (NOT DEFINED RESTC_CPP_VERSION)
8-
set(RESTC_CPP_VERSION 0.102.0)
8+
set(RESTC_CPP_VERSION 0.102.1)
99
endif()
1010

1111
if(NOT DEFINED RESTC_BOOST_VERSION)

src/ChunkedReaderImpl.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,15 @@ class ChunkedReaderImpl : public DataReader {
5555
return out.str();
5656
}
5757

58-
static void Log(const ::restc_cpp::boost_const_buffer buffers, const char * /*tag*/)
58+
static void Log(const ::restc_cpp::boost_const_buffer buffers, const char * tag)
5959
{
6060
const auto buf_len = boost_buffer_size(buffers);
6161

6262
// At the time of the implementation, there are never multiple buffers.
6363
RESTC_CPP_LOG_TRACE_(tag << ' ' << "# " << buf_len
6464
<< " bytes: "
6565
<< ToPrintable({
66-
boost::asio::buffer_cast<const char *>(*buffers.begin()),
67-
buf_len}));
66+
boost_buffer_cast(buffers), buf_len}));
6867
}
6968

7069
::restc_cpp::boost_const_buffer ReadSome() override {

tests/functional/CRUD_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using namespace restc_cpp;
1414

1515
/* These url's points to a local Docker container with nginx, linked to
1616
* a jsonserver docker container with mock data.
17-
* The scripts to build and run these containers are in the ./tests directory.
17+
* You can run /.create-and-run-containers.sh to start them.
1818
*/
1919
const string http_url = "http://localhost:3000/posts";
2020

0 commit comments

Comments
 (0)