mirror of
https://github.com/boostorg/exception.git
synced 2025-07-12 12:06:33 +02:00
Optimization for error_info<throw_function>, error_info<throw_file>, error_info<throw_line>. Refactored exception_ptr to use shared_ptr.
[SVN r48521]
This commit is contained in:
@ -22,19 +22,17 @@ test_type
|
||||
count_=42;
|
||||
}
|
||||
|
||||
friend
|
||||
void
|
||||
intrusive_ptr_add_ref( test_type const * c )
|
||||
add_ref()
|
||||
{
|
||||
++c->count_;
|
||||
++count_;
|
||||
}
|
||||
|
||||
friend
|
||||
void
|
||||
intrusive_ptr_release( test_type const * c )
|
||||
release()
|
||||
{
|
||||
if( !--c->count_ )
|
||||
delete c;
|
||||
if( !--count_ )
|
||||
delete this;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user