aboutsummaryrefslogtreecommitdiff
path: root/bigint.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-10-09 21:43:38 +0200
committertomsmeding <tom.smeding@gmail.com>2016-10-09 21:43:38 +0200
commitcbea7bc041e5c14670042e3e52f0786f9561af05 (patch)
tree4d646978f1ed984099828a65c92bcee0a72b47dc /bigint.h
parentd6dd94c63252ace898d9a60a539c7ab14d69f0ea (diff)
Better error handling (exceptions)
Diffstat (limited to 'bigint.h')
-rw-r--r--bigint.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/bigint.h b/bigint.h
index a4c29d6..a3c5be3 100644
--- a/bigint.h
+++ b/bigint.h
@@ -93,7 +93,9 @@ public:
bool odd() const;
std::string serialiseMantissa() const; //stores everything but the sign
- void deserialiseMantissa(const std::string&); //restores non-negative number
+
+ //restores non-negative number; can throw invalid_argument
+ void deserialiseMantissa(const std::string&);
std::vector<bool> bits() const;
friend std::istream& operator>>(std::istream&,Bigint&);