51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef EXCEPTIONS_HEADER
-#define EXCEPTIONS_HEADER
+#pragma once
#include <exception>
#include <string>
{
public:
BaseException(const std::string &s) throw(): m_s(s) {}
- ~BaseException() throw() {}
+ ~BaseException() throw() = default;
+
virtual const char * what() const throw()
{
return m_s.c_str();
BaseException(s)
{}
};
-
-#endif
-