diff --git a/include/boost/mysql/async_handler_arg.hpp b/include/boost/mysql/async_handler_arg.hpp index f00be70b..be8b93f0 100644 --- a/include/boost/mysql/async_handler_arg.hpp +++ b/include/boost/mysql/async_handler_arg.hpp @@ -2,6 +2,7 @@ #define INCLUDE_BOOST_MYSQL_ASYNC_HANDLER_ARG_HPP_ #include "boost/mysql/error.hpp" +#include namespace boost { namespace mysql { @@ -14,7 +15,7 @@ class async_handler_arg public: using value_type = T; - constexpr async_handler_arg() noexcept = default; + constexpr async_handler_arg() = default; constexpr async_handler_arg(error_info&& info): err_(std::move(info)) {} diff --git a/include/boost/mysql/error.hpp b/include/boost/mysql/error.hpp index 89bf785d..4a9341f4 100644 --- a/include/boost/mysql/error.hpp +++ b/include/boost/mysql/error.hpp @@ -38,7 +38,7 @@ public: error_info() = default; /// Initialization constructor. - error_info(std::string&& err): msg_(std::move(err)) {} + error_info(std::string&& err) noexcept: msg_(std::move(err)) {} /// Gets the error message. const std::string& message() const noexcept { return msg_; }