From eb1d6d72fe5e501c7b980789eae8aec4b04fa71f Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 18 Nov 2017 14:31:27 +0100 Subject: Added constructors to copy and create a number from an integer Signed-off-by: Olivier Gayot --- number.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'number.cpp') diff --git a/number.cpp b/number.cpp index bd05dbf..c337a34 100644 --- a/number.cpp +++ b/number.cpp @@ -2,6 +2,10 @@ #include #include "number.h" +number::number(std::uint32_t n): + _operands{n} +{ } + /* Type Conversion {{{ */ std::string -- cgit v1.2.3