Fix unique_ptr model

Summary:public
Conversion constructor of unique_ptr should be explicit. Fix it.

Reviewed By: cristianoc

Differential Revision: D3075661

fb-gh-sync-id: e911d8c
shipit-source-id: e911d8c
master
Andrzej Kotulski 9 years ago committed by Facebook Github Bot 8
parent b7bc95e1f9
commit 65449c87ab

@ -45,7 +45,7 @@ struct unique_ptr {
constexpr unique_ptr(nullptr_t) noexcept : unique_ptr<_Tp, _Dp>() {}
unique_ptr(pointer ptr) : data(ptr) {}
explicit unique_ptr(pointer ptr) : data(ptr) {}
unique_ptr(pointer ptr,
typename conditional<
@ -152,7 +152,7 @@ struct unique_ptr<_Tp[], _Dp> {
constexpr unique_ptr(nullptr_t) noexcept : data(nullptr) {}
unique_ptr(pointer ptr) : data(ptr) {}
explicit unique_ptr(pointer ptr) : data(ptr) {}
unique_ptr(
pointer ptr,

Loading…
Cancel
Save