diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-05-31 15:59:24 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2021-09-07 19:19:02 +0200 |
commit | bddae7e7ff7bb5931ed807acaef7336f2ee98476 (patch) | |
tree | c26d08835e8b6bba8faf10d14b6d81e53f4413a7 | |
parent | 498b323425d960274c40472a6a847afc1982201d (diff) |
Add util/types.h with ALWAYS_FALSE template
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/util/types.h | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 6f8245de8a..eea98c7f22 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -268,6 +268,7 @@ BITCOIN_CORE_H = \ util/tokenpipe.h \ util/trace.h \ util/translation.h \ + util/types.h \ util/ui_change_type.h \ util/url.h \ util/vector.h \ diff --git a/src/util/types.h b/src/util/types.h new file mode 100644 index 0000000000..0047b00026 --- /dev/null +++ b/src/util/types.h @@ -0,0 +1,11 @@ +// Copyright (c) 2021 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_UTIL_TYPES_H +#define BITCOIN_UTIL_TYPES_H + +template <class> +inline constexpr bool ALWAYS_FALSE{false}; + +#endif // BITCOIN_UTIL_TYPES_H |