Skip to content

Commit

Permalink
Add missing typeinfo includes
Browse files Browse the repository at this point in the history
The use of `typeid()` for logging exception types requires this include
according to https://en.cppreference.com/w/cpp/language/typeid.
  • Loading branch information
laanwj committed Jan 2, 2020
1 parent 4d88c3d commit 4bdd68f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <util/validation.h>

#include <memory>
#include <typeinfo>

#if defined(NDEBUG)
# error "Bitcoin cannot be compiled without assertions."
Expand Down
1 change: 1 addition & 0 deletions src/util/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
#endif

#include <thread>
#include <typeinfo>
#include <univalue.h>

// Application startup time (used for uptime calculation)
Expand Down

0 comments on commit 4bdd68f

Please sign in to comment.