Stop using auto_ptr (#428)
Stop using auto_ptr std::unique_ptr requires -std=c++11. just use raw pointer.
This commit is contained in:
parent
7ffca211fe
commit
7f91846ca1
@ -572,9 +572,10 @@ void TestDCHECK() {
|
||||
DCHECK_GT(2, 1);
|
||||
DCHECK_LT(1, 2);
|
||||
|
||||
auto_ptr<int64> sptr(new int64);
|
||||
int64* ptr = DCHECK_NOTNULL(sptr.get());
|
||||
CHECK_EQ(ptr, sptr.get());
|
||||
int64* orig_ptr = new int64;
|
||||
int64* ptr = DCHECK_NOTNULL(orig_ptr);
|
||||
CHECK_EQ(ptr, orig_ptr);
|
||||
delete orig_ptr;
|
||||
}
|
||||
|
||||
void TestSTREQ() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user