diff --git a/asio/include/asio/system_error.hpp b/asio/include/asio/system_error.hpp index 521063b1..f3a29254 100644 --- a/asio/include/asio/system_error.hpp +++ b/asio/include/asio/system_error.hpp @@ -51,7 +51,8 @@ public: /// Copy constructor. system_error(const system_error& other) - : code_(other.code_), + : std::exception(other), + code_(other.code_), context_(other.context_), what_() {