Browse Source

Fixed a clang-warning related to a throws declaration.

Former-commit-id: 933ad7925a
main
dehnert 10 years ago
parent
commit
f8a06b69f5
  1. 2
      src/exceptions/BaseException.cpp
  2. 4
      src/exceptions/BaseException.h

2
src/exceptions/BaseException.cpp

@ -18,7 +18,7 @@ namespace storm {
// Intentionally left empty.
}
const char* BaseException::what() const throw() {
const char* BaseException::what() const {
std::string errorString = this->stream.str();
char* result = new char[errorString.size() + 1];
result[errorString.size()] = '\0';

4
src/exceptions/BaseException.h

@ -32,14 +32,14 @@ namespace storm {
/*!
* Declare a destructor to counter the "looser throw specificator" error
*/
virtual ~BaseException() throw();
virtual ~BaseException();
/*!
* Retrieves the message associated with this exception.
*
* @return The message associated with this exception.
*/
virtual const char* what() const throw();
virtual const char* what() const noexcept;
protected:
// This stream stores the message of this exception.

Loading…
Cancel
Save