aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-06-27 13:37:31 -0400
committerDeterminant <[email protected]>2018-06-27 13:37:31 -0400
commit0d7edf5486daf8a3bd30ca5374d0e27998a34888 (patch)
treeb19e50b5b8167bf1880636940fd2f21978b8f94c /include
parentb8f95225f752900471dedacbe9b71fc0523393d9 (diff)
...
Diffstat (limited to 'include')
-rw-r--r--include/salticidae/ref.h5
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) {