From a6002dadddcf4b507de522d86f78a9523bb057d1 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Sun, 6 Jan 2013 06:43:20 -0600 Subject: [PATCH] fixes security category make_error_code --- websocketpp/transport/asio/security/base.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/websocketpp/transport/asio/security/base.hpp b/websocketpp/transport/asio/security/base.hpp index 4d2ee61985..299aac4ac3 100644 --- a/websocketpp/transport/asio/security/base.hpp +++ b/websocketpp/transport/asio/security/base.hpp @@ -93,10 +93,15 @@ public: } }; +const lib::error_category& get_security_category() { + static security_category instance; + return instance; +} + //static const security_category error_category; lib::error_code make_error(error::value e) { - return lib::error_code(static_cast(e), security_category()); + return lib::error_code(static_cast(e), get_security_category()); } typedef lib::function init_handler;