mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-07 00:23:43 +00:00
Enable full functionality of shared_ptr<const void> by adding allocator<const void>. Credit to John Hurley for discovering this bug.
llvm-svn: 148508
This commit is contained in:
parent
d8186490c1
commit
21fa1887e0
@ -672,6 +672,17 @@ public:
|
||||
template <class _Up> struct rebind {typedef allocator<_Up> other;};
|
||||
};
|
||||
|
||||
template <>
|
||||
class _LIBCPP_VISIBLE allocator<const void>
|
||||
{
|
||||
public:
|
||||
typedef const void* pointer;
|
||||
typedef const void* const_pointer;
|
||||
typedef const void value_type;
|
||||
|
||||
template <class _Up> struct rebind {typedef allocator<_Up> other;};
|
||||
};
|
||||
|
||||
// pointer_traits
|
||||
|
||||
template <class _Tp>
|
||||
|
Loading…
Reference in New Issue
Block a user