fixed clang 9 compile errors in shared_object_ptr

master
Marc Knaup 7 년 전
부모 8c731ac016
커밋 a604ea7153
No known key found for this signature in database
GPG 키 ID: 96F6A69E50C0F024

@ -73,7 +73,7 @@ public:
}
shared_object_ptr(shared_object_ptr const& rhs): px(rhs.px) { if(px != nullptr) add_ref(); }
template<class U>
shared_object_ptr(shared_object_ptr<U> const& rhs, typename std::is_convertible<U,T>::type* = nullptr) : px(rhs.get()) { if(px != nullptr) add_ref(); }
shared_object_ptr(shared_object_ptr<U> const& rhs, typename std::enable_if<std::is_convertible<U*,T*>::value, U*>::type = nullptr) : px(rhs.get()) { if(px != nullptr) add_ref(); }
~shared_object_ptr() { if(px != nullptr) dec_ref(); }
void reset() { shared_object_ptr().swap(*this); }

불러오는 중...
취소
저장