-(mod) changed archive exception constructor to a sink as it should be noexcept
This commit is contained in:
parent
b4d1fdd42b
commit
48fd5f4ba2
@ -30,8 +30,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
namespace ns_archive {
|
namespace ns_archive {
|
||||||
|
|
||||||
archive_exception::archive_exception(const std::string& what) noexcept :
|
archive_exception::archive_exception(std::string&& what) noexcept :
|
||||||
_what(what)
|
_what(std::forward<std::string>(what))
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ namespace ns_archive {
|
|||||||
class archive_exception : public std::exception
|
class archive_exception : public std::exception
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
archive_exception(const std::string& what) noexcept;
|
archive_exception(std::string&& what) noexcept;
|
||||||
|
|
||||||
const char* what() const noexcept override;
|
const char* what() const noexcept override;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user