Index: base/memory/scoped_ptr.h |
diff --git a/base/memory/scoped_ptr.h b/base/memory/scoped_ptr.h |
index 269c5a3db18c0ccd3af1b3b839a1afb4650b60e9..ac27a795c2237c312caea11c09ea8608d2d53ae6 100644 |
--- a/base/memory/scoped_ptr.h |
+++ b/base/memory/scoped_ptr.h |
@@ -240,6 +240,8 @@ template <class T, class D = std::default_delete<T>> |
class scoped_ptr { |
DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(scoped_ptr) |
+ static_assert(!std::is_array<T>::value, |
dcheng
2015/12/10 18:19:40
!!!
thanks
|
+ "scoped_ptr doesn't support array with size"); |
static_assert(base::internal::IsNotRefCounted<T>::value, |
"T is a refcounted type and needs a scoped_refptr"); |