From ed94312ebdf5ca5e01f8a4498ff5579270e2665a Mon Sep 17 00:00:00 2001 From: ruben Date: Sat, 28 Mar 2020 16:36:46 +0000 Subject: [PATCH] Corrected wrong noexcept specifications --- include/boost/mysql/async_handler_arg.hpp | 3 ++- include/boost/mysql/error.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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_; }