mirror of
https://github.com/boostorg/mysql.git
synced 2026-02-14 12:52:17 +00:00
Corrected wrong noexcept specifications
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define INCLUDE_BOOST_MYSQL_ASYNC_HANDLER_ARG_HPP_
|
||||
|
||||
#include "boost/mysql/error.hpp"
|
||||
#include <type_traits>
|
||||
|
||||
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)) {}
|
||||
|
||||
@@ -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_; }
|
||||
|
||||
Reference in New Issue
Block a user