Skip to content

Commit

Permalink
Merge pull request #79 from InfiniTensor/add-headfile
Browse files Browse the repository at this point in the history
Add headfile
  • Loading branch information
YdrMaster authored Jan 17, 2024
2 parents 54ffa1a + e76c1fc commit 8b6333d
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 8b6333d

Please sign in to comment.