RCPtr: Add dynamic_pointer_cast 52/76552/2
authorDave Rigby <daver@couchbase.com>
Wed, 5 Apr 2017 16:46:08 +0000 (17:46 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 18 Apr 2017 11:50:03 +0000 (11:50 +0000)
commit4a1704d496b189d5b0c418b6d68bb16cd641afb4
tree1bc4ff10fa4681e684dfefadd20bb5cd59ba010e
parent5e2d16020069c0bb3e01d0ab499afd4309be7828
RCPtr: Add dynamic_pointer_cast

Allows dynamic cast from one RCPtr instantiation to another. Based on
same function for std::shared_ptr.

Change-Id: Idc8723ea90dfd2843a3c5b602f5e42fad7a36613
Reviewed-on: http://review.couchbase.org/76552
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: James Harrison <james.harrison@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
src/atomic.h