File tree Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
- #include < compat.h>
6
5
#include < prevector.h>
7
6
#include < serialize.h>
8
7
#include < streams.h>
8
+ #include < type_traits>
9
9
10
10
#include < bench/bench.h>
11
11
12
+ // GCC 4.8 is missing some C++11 type_traits,
13
+ // https://www.gnu.org/software/gcc/gcc-5/changes.html
14
+ #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
15
+ #define IS_TRIVIALLY_CONSTRUCTIBLE std::has_trivial_default_constructor
16
+ #else
17
+ #define IS_TRIVIALLY_CONSTRUCTIBLE std::is_trivially_default_constructible
18
+ #endif
19
+
12
20
struct nontrivial_t {
13
21
int x;
14
22
nontrivial_t () :x(-1 ) {}
Original file line number Diff line number Diff line change 10
10
#include <config/bitcoin-config.h>
11
11
#endif
12
12
13
- #include < type_traits>
14
-
15
- // GCC 4.8 is missing some C++11 type_traits,
16
- // https://www.gnu.org/software/gcc/gcc-5/changes.html
17
- #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ < 5
18
- #define IS_TRIVIALLY_CONSTRUCTIBLE std::has_trivial_default_constructor
19
- #else
20
- #define IS_TRIVIALLY_CONSTRUCTIBLE std::is_trivially_default_constructible
21
- #endif
22
-
23
13
#ifdef WIN32
24
14
#ifdef _WIN32_WINNT
25
15
#undef _WIN32_WINNT
Original file line number Diff line number Diff line change 15
15
#include < iterator>
16
16
#include < type_traits>
17
17
18
- #include < compat.h>
19
-
20
18
#pragma pack(push, 1)
21
19
/* * Implements a drop-in replacement for std::vector<T> which stores up to N
22
20
* elements directly (without heap allocation). The types Size and Diff are
You can’t perform that action at this time.
0 commit comments