return error code by value rather than reference

This commit is contained in:
Peter Thorson
2013-05-11 09:43:09 -05:00
parent cb5955ccc5
commit 5bd0332d19
2 changed files with 3 additions and 3 deletions

View File

@@ -216,7 +216,7 @@ protected:
h(ec);
}
const lib::error_code &get_ec() const {
lib::error_code get_ec() const {
return lib::error_code();
}
private:
@@ -228,7 +228,7 @@ private:
socket_ptr m_socket;
state m_state;
connection_hdl m_hdl;
socket_init_handler m_socket_init_handler;
};

View File

@@ -251,7 +251,7 @@ protected:
callback(m_ec);
}
const lib::error_code &get_ec() const {
lib::error_code get_ec() const {
return m_ec;
}