X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Fio%2Ftest%2FIOBufTest.cpp;h=5fc86644b7a8f84a7105374074bceec6e85ff8ba;hp=a9e2ace3fe43b1db37f6bfac24ce010b44736517;hb=29eecd37d773918cc0081938da7562852151c69f;hpb=cb5272724fbe18e937bbe8bb8a0a279027255032 diff --git a/folly/io/test/IOBufTest.cpp b/folly/io/test/IOBufTest.cpp index a9e2ace3..5fc86644 100644 --- a/folly/io/test/IOBufTest.cpp +++ b/folly/io/test/IOBufTest.cpp @@ -749,7 +749,7 @@ TEST(IOBuf, takeOwnershipUniquePtr) { destructorCount = 0; { std::unique_ptr - p(new OwnershipTestClass[2], customDeleteArray); + p(new OwnershipTestClass[2], CustomDeleter(customDeleteArray)); std::unique_ptr buf(IOBuf::takeOwnership(std::move(p), 2)); EXPECT_EQ(2 * sizeof(OwnershipTestClass), buf->length()); EXPECT_EQ(0, destructorCount);