Skip to content

Commit cabe235

Browse files
authored
Merge pull request #1492 from stac47/fix_gcc9_allocator
Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472)
2 parents 16d9cdc + ddc9f20 commit cabe235

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/src/unit-allocator.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ struct my_allocator : std::allocator<T>
110110
p->~T();
111111
}
112112
}
113+
114+
template <class U>
115+
struct rebind {
116+
using other = my_allocator<U>;
117+
};
113118
};
114119

115120
// allows deletion of raw pointer, usually hold by json_value

0 commit comments

Comments
 (0)