| Index: base/memory/scoped_ptr.h
|
| diff --git a/base/memory/scoped_ptr.h b/base/memory/scoped_ptr.h
|
| index ae9eb0fee8bd202dcc5dda4ec6a64dec3b81d519..987ccfa804eadde2f89b1ac904ee77bd47b16d36 100644
|
| --- a/base/memory/scoped_ptr.h
|
| +++ b/base/memory/scoped_ptr.h
|
| @@ -85,6 +85,7 @@
|
| #include <stdlib.h>
|
|
|
| #include <algorithm> // For std::swap().
|
| +#include <iosfwd>
|
|
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| @@ -585,4 +586,9 @@ scoped_ptr<T> make_scoped_ptr(T* ptr) {
|
| return scoped_ptr<T>(ptr);
|
| }
|
|
|
| +template <typename T>
|
| +std::ostream& operator<<(std::ostream& out, const scoped_ptr<T>& p) {
|
| + return out << p.get();
|
| +}
|
| +
|
| #endif // BASE_MEMORY_SCOPED_PTR_H_
|
|
|