permessage deflate error category utility methods should be inline

This commit is contained in:
Peter Thorson
2015-04-02 09:39:03 -04:00
parent 371d2cdaef
commit e161ffde69
2 changed files with 3 additions and 3 deletions
@@ -148,13 +148,13 @@ public:
};
/// Get a reference to a static copy of the permessage-deflate error category
lib::error_category const & get_category() {
inline lib::error_category const & get_category() {
static category instance;
return instance;
}
/// Create an error code in the permessage-deflate category
lib::error_code make_error_code(error::value e) {
inline lib::error_code make_error_code(error::value e) {
return lib::error_code(static_cast<int>(e), get_category());
}
+1 -1
View File
@@ -53,7 +53,7 @@ static int const patch_version = 1;
static char const prerelease_flag[] = "permessagedeflate";
/// Default user agent string
static char const user_agent[] = "WebSocket++/0.5.0-permessagedeflate";
static char const user_agent[] = "WebSocketpp/0.5.1-permessagedeflate";
} // namespace websocketpp