We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ec46b4 commit 0f9a647Copy full SHA for 0f9a647
arby/include/arby/Nat.hpp
@@ -27,7 +27,7 @@
27
#include <limits>
28
#include <string>
29
#include <stdexcept>
30
-#include <tuple>
+#include <utility>
31
32
#include "codlili.hpp"
33
@@ -125,7 +125,7 @@ namespace com::saxbophone::arby {
125
using OverflowType = PRIVATE::GetStorageType<int>::OverflowType;
126
// traps with an exception if there are leading zeroes in the digits array
127
constexpr void _trap_leading_zero() const {
128
- if (_digits.size() > 1 and _digits.front() == 0) {
+ if (_digits.size() > 0 and _digits.front() == 0) {
129
throw std::logic_error("leading zeroes in internal representation");
130
}
131
0 commit comments