]> git.tdb.fi Git - builder.git/commitdiff
Add copy-constructor as required by C++11
authorMikko Rasa <tdb@tdb.fi>
Tue, 17 Sep 2019 16:13:04 +0000 (19:13 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 17 Sep 2019 16:13:04 +0000 (19:13 +0300)
source/buildinfo.h

index ccfa2b630bc9f47a03e471c846e8bc7e2e3c8838..fa8ae62d39606527509d7c9a8b8dd18d77db68e7 100644 (file)
@@ -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; }