-(mod) changed archive exception constructor to a sink as it should be noexcept

This commit is contained in:
Domen Vrankar 2014-09-26 22:57:07 +02:00
parent b4d1fdd42b
commit 48fd5f4ba2
2 changed files with 3 additions and 3 deletions

View File

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

View File

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