diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-09-02 17:35:30 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-09-02 17:35:30 +0200 |
| commit | 7a15d4ff67c9a6e3b6b5a63f82f76ffe1937c3b8 (patch) | |
| tree | 8ac8a0e7b9994ade96f635dd261c5ae46703f7df /src/serialize.h | |
| parent | Merge branch 'master' of https://github.com/bitcoin/bitcoin (diff) | |
| parent | Give hard-coded seed nodes a random last-seen time, to randomize order they'r... (diff) | |
| download | discoin-7a15d4ff67c9a6e3b6b5a63f82f76ffe1937c3b8.tar.xz discoin-7a15d4ff67c9a6e3b6b5a63f82f76ffe1937c3b8.zip | |
Merge branch 'master' of https://github.com/bitcoin/bitcoin
Conflicts:
src/main.cpp
Diffstat (limited to 'src/serialize.h')
| -rw-r--r-- | src/serialize.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/serialize.h b/src/serialize.h index b169f75b2..09e4035fa 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<typename T> +inline T& REF(const T& val) +{ + return const_cast<T&>(val); +} ///////////////////////////////////////////////////////////////// // |