From 22907c578cb8244c60e8ab1b3466340768491dd1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 17 Sep 2019 19:13:04 +0300 Subject: [PATCH] Add copy-constructor as required by C++11 --- source/buildinfo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/buildinfo.h b/source/buildinfo.h index ccfa2b6..fa8ae62 100644 --- a/source/buildinfo.h +++ b/source/buildinfo.h @@ -71,6 +71,7 @@ public: public: Tracked(): value(T()), set(false) { } Tracked(T v): value(v), set(false) { } + Tracked(const Tracked &t): value(t.value), set(t.set) { } Tracked &operator=(const Tracked &v) { if(v.set) { value = v.value; set = true; } return *this; } Tracked &operator=(const T &v) { value = v; set = true; return *this; } -- 2.45.2