From 1bd2a072d44893b78eac97ee81edd24023918e06 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 23 Oct 2018 09:51:16 +0200 Subject: Derive invalid_path from invalid_argument --- libbutl/path.mxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libbutl/path.mxx') diff --git a/libbutl/path.mxx b/libbutl/path.mxx index 2ad3c6a..35ba0ec 100644 --- a/libbutl/path.mxx +++ b/libbutl/path.mxx @@ -13,7 +13,7 @@ #include // ptrdiff_t #include // move(), swap() #include -#include +#include // invalid_argument #include // hash #include @@ -61,10 +61,11 @@ LIBBUTL_MODEXPORT namespace butl // non-dir-adapted implementation (see where we call K::cast()). // - struct LIBBUTL_SYMEXPORT invalid_path_base: public std::exception + // @@ This should probably be called invalid_path_argument + // + struct LIBBUTL_SYMEXPORT invalid_path_base: public std::invalid_argument { - virtual char const* - what () const throw (); + invalid_path_base (); }; template -- cgit v1.1