diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-11-12 19:47:07 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-11-12 19:47:07 +0000 |
| commit | bd91c05befcd0db146a9f8ae604e6b7a2efdbe78 (patch) | |
| tree | 23e7c6c7a1deb478f032b54dafc0609a47c5724c /src/2geom/utils.h | |
| parent | LPE: no longer overload doEffect methods, but name them according to accepted... (diff) | |
| download | inkscape-bd91c05befcd0db146a9f8ae604e6b7a2efdbe78.tar.gz inkscape-bd91c05befcd0db146a9f8ae604e6b7a2efdbe78.zip | |
update to 2geom rev. 1168
(bzr r4068)
Diffstat (limited to 'src/2geom/utils.h')
| -rw-r--r-- | src/2geom/utils.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/2geom/utils.h b/src/2geom/utils.h index a96a34dff..50dfa82fe 100644 --- a/src/2geom/utils.h +++ b/src/2geom/utils.h @@ -1,5 +1,5 @@ -#ifndef UTILS_HEADER -#define UTILS_HEADER +#ifndef LIB2GEOM_UTILS_HEADER +#define LIB2GEOM_UTILS_HEADER /** Various utility functions. * @@ -40,6 +40,11 @@ public: NotImplemented() : std::logic_error("method not implemented") {} }; +class NotInvertible : public std::range_error { + public: + NotInvertible() : std::range_error("function does not have a unique inverse") {} +}; + // proper logical xor inline bool logical_xor (bool a, bool b) { return (a || b) && !(a && b); } |
