Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

inlined bind_failure::error_code

  • Loading branch information...
commit c3b7b23e4ca2effd0b44f4b9627eccae29be3aa8 1 parent f1167ce
@Neverlord Neverlord authored
Showing with 6 additions and 6 deletions.
  1. +6 −1 cppa/exception.hpp
  2. +0 −5 src/exception.cpp
View
7 cppa/exception.hpp
@@ -55,7 +55,7 @@ class bind_failure : public network_exception
bind_failure(int bind_errno);
- int error_code() const throw();
+ inline int error_code() const throw();
};
@@ -64,6 +64,11 @@ inline std::uint32_t actor_exited::reason() const throw()
return m_reason;
}
+inline int bind_failure::error_code() const throw()
+{
+ return m_errno;
+}
+
} // namespace cppa
#endif // EXCEPTION_HPP
View
5 src/exception.cpp
@@ -71,9 +71,4 @@ bind_failure::bind_failure(int err_code) : network_exception(be_what(err_code))
m_errno = err_code;
}
-int bind_failure::error_code() const throw()
-{
- return m_errno;
-}
-
} // namespace cppa
Please sign in to comment.
Something went wrong with that request. Please try again.