forked from boostorg/smart_ptr
Rename member because _CRTDBG_MAP_ALLOC in VS does not allow it
_CRTDBG_MAP_ALLOC has issues with member functions named "free".
This commit is contained in:
@ -166,12 +166,12 @@ namespace boost {
|
||||
void operator()() {
|
||||
if (data.object) {
|
||||
R tag;
|
||||
free(tag);
|
||||
release(tag);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
void free(ms_init_tag) {
|
||||
void release(ms_init_tag) {
|
||||
#if !defined(BOOST_NO_CXX11_ALLOCATOR)
|
||||
as_destroy(allocator(), data.object, data.size);
|
||||
#else
|
||||
@ -179,7 +179,7 @@ namespace boost {
|
||||
#endif
|
||||
}
|
||||
|
||||
void free(ms_noinit_tag) {
|
||||
void release(ms_noinit_tag) {
|
||||
ms_destroy(data.object, data.size);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user