diff options
Diffstat (limited to 'libcutl/exception.cxx')
-rw-r--r-- | libcutl/exception.cxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libcutl/exception.cxx b/libcutl/exception.cxx new file mode 100644 index 0000000..bbe8ba5 --- /dev/null +++ b/libcutl/exception.cxx @@ -0,0 +1,15 @@ +// file : libcutl/exception.cxx +// license : MIT; see accompanying LICENSE file + +#include <typeinfo> + +#include <libcutl/exception.hxx> + +namespace cutl +{ + char const* exception:: + what () const noexcept + { + return typeid (*this).name (); + } +} |