Skip to content

Commit d87d6e4

Browse files
committed
Include unordered_map where using a std::unordered_map
The code fixed here previously relied on unordered_map being included by dstring.h, which is only dragged in when USE_DSTRING is set.
1 parent 83d9272 commit d87d6e4

File tree

7 files changed

+13
-0
lines changed

7 files changed

+13
-0
lines changed

src/ansi-c/ansi_c_scope.h

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Author: Daniel Kroening, [email protected]
1212

1313
#include <util/irep.h>
1414

15+
#include <unordered_map>
16+
1517
enum class ansi_c_id_classt
1618
{
1719
ANSI_C_UNKNOWN,

src/goto-programs/class_hierarchy.h

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Date: April 2016
1616

1717
#include <iosfwd>
1818
#include <map>
19+
#include <unordered_map>
1920

2021
#include <util/graph.h>
2122
#include <util/namespace.h>

src/java_bytecode/character_refine_preprocess.h

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Date: March 2017
2424
#include <util/std_code.h>
2525
#include <util/mp_arith.h>
2626

27+
#include <unordered_map>
28+
2729
class character_refine_preprocesst:public messaget
2830
{
2931
public:

src/solvers/prop/bdd_expr.h

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Author: Michael Tautschnig, [email protected]
2323

2424
#include <solvers/miniBDD/miniBDD.h>
2525

26+
#include <unordered_map>
27+
2628
class namespacet;
2729

2830
/*! \brief TO_BE_DOCUMENTED

src/util/replace_expr.h

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Author: Daniel Kroening, [email protected]
1717

1818
#include "expr.h"
1919

20+
#include <unordered_map>
21+
2022
typedef std::unordered_map<exprt, exprt, irep_hash> replace_mapt;
2123

2224
bool replace_expr(const exprt &what, const exprt &by, exprt &dest);

src/util/replace_symbol.h

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Author: Daniel Kroening, [email protected]
1717

1818
#include "expr.h"
1919

20+
#include <unordered_map>
21+
2022
class replace_symbolt
2123
{
2224
public:

src/util/std_types.h

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Author: Daniel Kroening, [email protected]
2121
#include "invariant.h"
2222
#include "expr_cast.h"
2323

24+
#include <unordered_map>
25+
2426
class constant_exprt;
2527

2628
/*! \defgroup gr_std_types Conversion to specific types

0 commit comments

Comments
 (0)