Skip to content

Commit bddae7e

Browse files
MarcoFalkejonatack
authored andcommitted
Add util/types.h with ALWAYS_FALSE template
1 parent 498b323 commit bddae7e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ BITCOIN_CORE_H = \
268268
util/tokenpipe.h \
269269
util/trace.h \
270270
util/translation.h \
271+
util/types.h \
271272
util/ui_change_type.h \
272273
util/url.h \
273274
util/vector.h \

src/util/types.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright (c) 2021 The Bitcoin Core developers
2+
// Distributed under the MIT software license, see the accompanying
3+
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
5+
#ifndef BITCOIN_UTIL_TYPES_H
6+
#define BITCOIN_UTIL_TYPES_H
7+
8+
template <class>
9+
inline constexpr bool ALWAYS_FALSE{false};
10+
11+
#endif // BITCOIN_UTIL_TYPES_H

0 commit comments

Comments
 (0)