Permalink
Browse files

Namespace fixes boost::system and darner::log

  • Loading branch information...
1 parent 1541f5c commit 6db8fe2d6959d366c451134c2adbe6e48b55452c @nipuman nipuman committed Aug 31, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 bench/db.cpp
View
@@ -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;
}
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);

0 comments on commit 6db8fe2

Please sign in to comment.