Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 0792147

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Use set instead of unordered_set
OSX has some difficulty using unordered_set so use set instead. Performance is not important here since this is only used for debugging. Belonging to [master]: - #2220
1 parent b4562fb commit 0792147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Compiler/runtime/systemimplmisc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
#include <string>
6-
#include <unordered_set>
6+
#include <set>
77
#include <stack>
88

99
using namespace std;
@@ -56,7 +56,7 @@ static inline size_t actualByteSize(size_t sz)
5656
double SystemImpl__getSizeOfData(void *data)
5757
{
5858
size_t sz=0;
59-
std::unordered_set<void*> handled;
59+
std::set<void*> handled;
6060
std::stack<void*> work;
6161
work.push(data);
6262
while (!work.empty()) {

0 commit comments

Comments
 (0)