From b6fe6899bef6dd90572fc0e7f12912d9ad87a19e Mon Sep 17 00:00:00 2001 From: vladlosev Date: Tue, 17 Nov 2009 23:34:56 +0000 Subject: Implements the element_type typedef in testing::internal::scoped_ptr. This is needed to test gmock's IsNull/NotNull with it. --- include/gtest/internal/gtest-port.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/gtest') diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index 4175fcc1..c67fbd3f 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -589,6 +589,8 @@ bool IsTrue(bool condition); template class scoped_ptr { public: + typedef T element_type; + explicit scoped_ptr(T* p = NULL) : ptr_(p) {} ~scoped_ptr() { reset(); } -- cgit v1.2.3