Skip to content

Commit

Permalink
add head file
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyue207 authored and YdrMaster committed Jan 17, 2024
1 parent 54ffa1a commit e76c1fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/00common/include/common/rc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define RC_HPP

#include <functional>
#include <utility>

namespace refactor {

Expand All @@ -18,7 +19,7 @@ namespace refactor {
T *_value;
struct Counter {
size_t strong, weak;
} * _counter;
} *_counter;

Rc(T *ptr, Counter *counter) noexcept
: _value(ptr), _counter(counter) { inc(); }
Expand Down

0 comments on commit e76c1fc

Please sign in to comment.