make RefCntr(x*) explicit

This commit is contained in:
dockes 2009-02-06 16:49:59 +00:00
parent 08e4f8e7b4
commit 16309618b4

View File

@ -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)