summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--number.cpp4
-rw-r--r--number.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/number.cpp b/number.cpp
index bd05dbf..c337a34 100644
--- a/number.cpp
+++ b/number.cpp
@@ -2,6 +2,10 @@
#include <sstream>
#include "number.h"
+number::number(std::uint32_t n):
+ _operands{n}
+{ }
+
/* Type Conversion {{{ */
std::string
diff --git a/number.h b/number.h
index 97817ac..252428a 100644
--- a/number.h
+++ b/number.h
@@ -8,6 +8,10 @@
class number {
public:
number() = default;
+ number(const number &) = default;
+ number(number &&) = default;
+
+ number(std::uint32_t);
/**
* \brief Return a hexadecimal string representation of this number.