mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-13 18:31:42 +02:00
Add util/types.h with ALWAYS_FALSE template
This commit is contained in:
parent
498b323425
commit
bddae7e7ff
@ -268,6 +268,7 @@ BITCOIN_CORE_H = \
|
|||||||
util/tokenpipe.h \
|
util/tokenpipe.h \
|
||||||
util/trace.h \
|
util/trace.h \
|
||||||
util/translation.h \
|
util/translation.h \
|
||||||
|
util/types.h \
|
||||||
util/ui_change_type.h \
|
util/ui_change_type.h \
|
||||||
util/url.h \
|
util/url.h \
|
||||||
util/vector.h \
|
util/vector.h \
|
||||||
|
11
src/util/types.h
Normal file
11
src/util/types.h
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user