make RefCntr(x*) explicit
This commit is contained in:
parent
08e4f8e7b4
commit
16309618b4
@ -9,7 +9,7 @@ public:
|
||||
RefCntr()
|
||||
: rep(0), pcount(0)
|
||||
{}
|
||||
RefCntr(X *pp)
|
||||
explicit RefCntr(X *pp)
|
||||
: rep(pp), pcount(new int(1))
|
||||
{}
|
||||
RefCntr(const RefCntr &r)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user