Merge pull request #1492 from stac47/fix_gcc9_allocator
Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472)
This commit is contained in:
commit
cabe2357b8
1 changed files with 5 additions and 0 deletions
|
@ -110,6 +110,11 @@ struct my_allocator : std::allocator<T>
|
|||
p->~T();
|
||||
}
|
||||
}
|
||||
|
||||
template <class U>
|
||||
struct rebind {
|
||||
using other = my_allocator<U>;
|
||||
};
|
||||
};
|
||||
|
||||
// allows deletion of raw pointer, usually hold by json_value
|
||||
|
|
Loading…
Reference in a new issue