Index: base/memory/scoped_ptr.h |
diff --git a/base/memory/scoped_ptr.h b/base/memory/scoped_ptr.h |
index 987ccfa804eadde2f89b1ac904ee77bd47b16d36..eb5aae97cf8aa2961e404f2446463550cfb90cd4 100644 |
--- a/base/memory/scoped_ptr.h |
+++ b/base/memory/scoped_ptr.h |
@@ -465,9 +465,9 @@ class scoped_ptr<T[], D> { |
// (C++98 [expr.delete]p3). If you're doing this, fix your code. |
// - it cannot be const-qualified differently from T per unique_ptr spec |
// (http://cplusplus.github.com/LWG/lwg-active.html#2118). Users wanting |
- // to work around this may use implicit_cast<const T*>(). |
+ // to work around this may use static_cast<const T*>(). |
// However, because of the first bullet in this comment, users MUST |
- // NOT use implicit_cast<Base*>() to upcast the static type of the array. |
+ // NOT use static_cast<Base*>() to upcast the static type of the array. |
danakj
2015/09/11 20:44:20
I'm not sure this is really the right way to say t
Nico
2015/09/11 20:53:54
This probably needs const_cast?
danakj
2015/09/11 21:20:28
Ah yah, ok changed both to const_cast in the comme
|
explicit scoped_ptr(element_type* array) : impl_(array) {} |
// Constructor. Allows construction from a nullptr. |