std::unqiue_ptr<..., decltype(&fn)> seems to be the preferred idiom.
This is the only decltype(fn)* outside aapt2 in the whole tree.
Change-Id: I2e19d2031b56fdb808c62c2c07ca6080c9ec6fe3
diff --git a/sysdeps_win32.cpp b/sysdeps_win32.cpp
index ee27406..109a548 100644
--- a/sysdeps_win32.cpp
+++ b/sysdeps_win32.cpp
@@ -952,7 +952,7 @@
_socket_set_errno(err);
return -1;
}
- std::unique_ptr<struct addrinfo, decltype(freeaddrinfo)*> addrinfo(addrinfo_ptr, freeaddrinfo);
+ std::unique_ptr<struct addrinfo, decltype(&freeaddrinfo)> addrinfo(addrinfo_ptr, freeaddrinfo);
addrinfo_ptr = nullptr;
// TODO: Try all the addresses if there's more than one? This just uses