Skip to content

Commit

Permalink
Namespace fixes boost::system and darner::log
Browse files Browse the repository at this point in the history
  • Loading branch information
nipuman committed Aug 31, 2013
1 parent 1541f5c commit 6db8fe2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bench/db.cpp
Expand Up @@ -83,7 +83,7 @@ class session : public enable_shared_from_this<session>
cerr << "[ERROR] " << method << ": " << message << endl;
}

void fail(const string& method, const system::error_code& e)
void fail(const string& method, const boost::system::error_code& e)
{
cerr << "[ERROR] " << method << ": " << e.message() << endl;
}
Expand Down Expand Up @@ -116,7 +116,7 @@ class session : public enable_shared_from_this<session>
socket_, buffer(results_.get_request, buf_len), bind(&session::get_on_write, shared_from_this(), _1, _2));
}

void get_on_write(const system::error_code& e, size_t bytes_transferred)
void get_on_write(const boost::system::error_code& e, size_t bytes_transferred)
{
if (e)
return fail("get_on_write", e);
Expand All @@ -129,7 +129,7 @@ class session : public enable_shared_from_this<session>
async_read_until(socket_, in_, '\n', bind(&session::get_on_header, shared_from_this(), _1, _2));
}

void get_on_header(const system::error_code& e, size_t bytes_transferred)
void get_on_header(const boost::system::error_code& e, size_t bytes_transferred)
{
if (e)
return fail("get_on_header", e);
Expand Down Expand Up @@ -164,7 +164,7 @@ class session : public enable_shared_from_this<session>
}
}

void get_on_value(const system::error_code& e, size_t bytes_transferred)
void get_on_value(const boost::system::error_code& e, size_t bytes_transferred)
{
if (e)
return fail("get_on_value", e);
Expand All @@ -188,7 +188,7 @@ class session : public enable_shared_from_this<session>
socket_, buffer(results_.set_request, buf_len), bind(&session::set_on_write, shared_from_this(), _1, _2));
}

void set_on_write(const system::error_code& e, size_t bytes_transferred)
void set_on_write(const boost::system::error_code& e, size_t bytes_transferred)
{
if (e)
return fail("set_on_write", e);
Expand All @@ -207,7 +207,7 @@ class session : public enable_shared_from_this<session>
bind(&session::set_on_response, shared_from_this(), _1, _2));
}

void set_on_response(const system::error_code& e, size_t bytes_transferred)
void set_on_response(const boost::system::error_code& e, size_t bytes_transferred)
{
if (e)
return fail("set_on_response", e);
Expand Down

0 comments on commit 6db8fe2

Please sign in to comment.