mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Rename make{ Counted => _intrusive }
This commit is contained in:
parent
21b6159e70
commit
054a4f4612
2 changed files with 7 additions and 7 deletions
|
@ -127,7 +127,7 @@ private:
|
|||
|
||||
// Convenience function for creating intrusive pointers.
|
||||
template <class T, class... Ts>
|
||||
IntrusivePtr<T> makeCounted(Ts&&... args)
|
||||
IntrusivePtr<T> make_intrusive(Ts&&... args)
|
||||
{
|
||||
// Assumes that objects start with a reference count of 1!
|
||||
return {new T(std::forward<Ts>(args)...), false};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue