2
0
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:
ruben
2020-03-28 16:36:46 +00:00
parent 672225fbcf
commit ed94312ebd
2 changed files with 3 additions and 2 deletions

View File

@@ -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)) {}

View File

@@ -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_; }