diff options
author | Determinant <[email protected]> | 2018-06-27 13:37:31 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-06-27 13:37:31 -0400 |
commit | 0d7edf5486daf8a3bd30ca5374d0e27998a34888 (patch) | |
tree | b19e50b5b8167bf1880636940fd2f21978b8f94c /include | |
parent | b8f95225f752900471dedacbe9b71fc0523393d9 (diff) |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/salticidae/ref.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/salticidae/ref.h b/include/salticidae/ref.h index 001fd51..d68632d 100644 --- a/include/salticidae/ref.h +++ b/include/salticidae/ref.h @@ -136,6 +136,11 @@ class RcObjBase { return *this; } + RcObjBase(const RcObjBase &other): + obj(other.obj), ctl(other.ctl) { + if (ctl) ctl->add_ref(); + } + template<typename T_> RcObjBase(const RcObjBase<T_, R> &other): obj(other.obj), ctl(other.ctl) { |