c++ refcnt
update ref
Merge remote-tracking branch 'origin/cpp-fix'