From 0d7edf5486daf8a3bd30ca5374d0e27998a34888 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 27 Jun 2018 13:37:31 -0400 Subject: ... --- include/salticidae/ref.h | 5 +++++ 1 file changed, 5 insertions(+) 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 RcObjBase(const RcObjBase &other): obj(other.obj), ctl(other.ctl) { -- cgit v1.2.3-70-g09d2