mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Fixed intrusive ptr conversion to Obj*
This commit is contained in:
parent
dfd6cbe6b4
commit
44df3087d6
1 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@
|
|||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
#include "Obj.h"
|
||||
|
||||
namespace zeek
|
||||
{
|
||||
|
||||
|
@ -111,7 +113,7 @@ public:
|
|||
~IntrusivePtr()
|
||||
{
|
||||
if ( ptr_ )
|
||||
Unref(ptr_);
|
||||
Unref((zeek::Obj*)ptr_);
|
||||
}
|
||||
|
||||
void swap(IntrusivePtr& other) noexcept { std::swap(ptr_, other.ptr_); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue