fix issues when compiling with clang
[folly.git] / folly / io / test / IOBufTest.cpp
index a9e2ace3fe43b1db37f6bfac24ce010b44736517..5fc86644b7a8f84a7105374074bceec6e85ff8ba 100644 (file)
@@ -749,7 +749,7 @@ TEST(IOBuf, takeOwnershipUniquePtr) {
   destructorCount = 0;
   {
     std::unique_ptr<OwnershipTestClass[], CustomDeleter>
-      p(new OwnershipTestClass[2], customDeleteArray);
+      p(new OwnershipTestClass[2], CustomDeleter(customDeleteArray));
     std::unique_ptr<IOBuf> buf(IOBuf::takeOwnership(std::move(p), 2));
     EXPECT_EQ(2 * sizeof(OwnershipTestClass), buf->length());
     EXPECT_EQ(0, destructorCount);