X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbuildinfo.h;h=5528748fc55c82bfde6b14d09e3ca9bc3313e3bc;hb=7885ebe9620edd82f119eb290267c8e7eda014ed;hp=1bba8195bc536014270ba8eff7664d31e63e7069;hpb=e7ce61ee5684a5152d326af8e756cbdb987ff5f8;p=builder.git diff --git a/source/buildinfo.h b/source/buildinfo.h index 1bba819..5528748 100644 --- a/source/buildinfo.h +++ b/source/buildinfo.h @@ -66,8 +66,8 @@ public: Tracked(T v): value(v), set(false) { } Tracked &operator=(const Tracked &v) { if(v.set) { value = v.value; set = true; } return *this; } - Tracked &operator=(T v) { value = v; set = true; return *this; } - operator T() const { return value; } + Tracked &operator=(const T &v) { value = v; set = true; return *this; } + operator const T &() const { return value; } }; typedef std::map DefineMap;