diff options
Diffstat (limited to 'src/KM_error.h')
| -rwxr-xr-x | src/KM_error.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/KM_error.h b/src/KM_error.h index 612a92c..ed171be 100755 --- a/src/KM_error.h +++ b/src/KM_error.h @@ -48,7 +48,11 @@ namespace Kumu Result_t(); public: - Result_t(long v, const char* l) : value(v), label(l) {} + static const Result_t& Find(long); + + Result_t(long v, const char* l); + ~Result_t(); + inline bool operator==(const Result_t& rhs) const { return value == rhs.value; } inline bool operator!=(const Result_t& rhs) const { return value != rhs.value; } inline bool Success() { return ( value >= 0 ); } |
