aboutsummaryrefslogtreecommitdiff
path: root/libbutl/path.mxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-10-23 09:51:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-10-23 09:51:16 +0200
commit1bd2a072d44893b78eac97ee81edd24023918e06 (patch)
tree79e8e0cb666e56006fa0dbaf281da56c9481a9c7 /libbutl/path.mxx
parentb517f9cd2684d2b6a5540c9ff64bad19acee4bc1 (diff)
Derive invalid_path from invalid_argument
Diffstat (limited to 'libbutl/path.mxx')
-rw-r--r--libbutl/path.mxx9
1 files changed, 5 insertions, 4 deletions
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 <cstddef> // ptrdiff_t
#include <utility> // move(), swap()
#include <iterator>
-#include <exception>
+#include <stdexcept> // invalid_argument
#include <functional> // hash
#include <vector>
@@ -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 <typename C>