diff --git a/api/scoped_refptr.h b/api/scoped_refptr.h index 0993e032cc..67d179fe7d 100644 --- a/api/scoped_refptr.h +++ b/api/scoped_refptr.h @@ -71,6 +71,8 @@ namespace rtc { template class scoped_refptr { public: + typedef T element_type; + scoped_refptr() : ptr_(nullptr) {} scoped_refptr(T* p) : ptr_(p) { // NOLINT(runtime/explicit)