Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472)

pull/1492/head
Laurent Stacul 2019-02-22 16:05:41 +00:00
parent 21516f2bae
commit ddc9f201f4
1 changed files with 5 additions and 0 deletions

View File

@ -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