mirror of
https://github.com/boostorg/utility.git
synced 2025-05-08 18:34:02 +00:00
Added a default constructor to shared_count and shared_ptr for incomplete types (void).
[SVN r12815]
This commit is contained in:
parent
74c3077c9a
commit
19645a52e6
@ -44,19 +44,6 @@ template<class T> struct checked_deleter
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// checked_deleter<void> is needed by shared_ptr<void>::reset(0)
|
|
||||||
|
|
||||||
template<> struct checked_deleter<void>
|
|
||||||
{
|
|
||||||
typedef void result_type;
|
|
||||||
typedef void * argument_type;
|
|
||||||
|
|
||||||
void operator()(void * x)
|
|
||||||
{
|
|
||||||
::operator delete(x); // avoid g++ warning
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
template<class T> struct checked_array_deleter
|
template<class T> struct checked_array_deleter
|
||||||
{
|
{
|
||||||
typedef void result_type;
|
typedef void result_type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user