Unverified Commit cabe2357 authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #1492 from stac47/fix_gcc9_allocator

Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472)
parents 16d9cdce ddc9f201
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment