X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fserialize.h;h=09e4035faedf8a687a2fc6cf3829e45c23da41c5;hb=7a15d4ff67c9a6e3b6b5a63f82f76ffe1937c3b8;hp=b169f75b2aae62344b9b1eebe4a6bf16a5e123f2;hpb=f43f46c175d7e6d7426536f8efcad05d2eafba80;p=novacoin.git diff --git a/src/serialize.h b/src/serialize.h index b169f75..09e4035 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -64,10 +64,13 @@ static const int VERSION = 32500; static const char* pszSubVer = ""; static const bool VERSION_IS_BETA = true; - - - - +// Used to bypass the rule against non-const reference to temporary +// where it makes sense with wrappers such as CFlatData or CTxDB +template +inline T& REF(const T& val) +{ + return const_cast(val); +} ///////////////////////////////////////////////////////////////// //