-(mod) made archive exception noexcept
This commit is contained in:
parent
41c9ef361e
commit
b4d1fdd42b
@ -30,13 +30,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
namespace ns_archive {
|
||||
|
||||
archive_exception::archive_exception(const std::string& what) :
|
||||
archive_exception::archive_exception(const std::string& what) noexcept :
|
||||
_what(what)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
const char* archive_exception::what()
|
||||
const char* archive_exception::what() const noexcept
|
||||
{
|
||||
return _what.c_str();
|
||||
}
|
||||
|
@ -37,9 +37,9 @@ namespace ns_archive {
|
||||
class archive_exception : public std::exception
|
||||
{
|
||||
public:
|
||||
archive_exception(const std::string& what);
|
||||
archive_exception(const std::string& what) noexcept;
|
||||
|
||||
const char* what();
|
||||
const char* what() const noexcept override;
|
||||
|
||||
private:
|
||||
std::string _what;
|
||||
|
Loading…
x
Reference in New Issue
Block a user