diff options
author | louiz’ <louiz@louiz.org> | 2016-10-28 00:11:36 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-10-31 01:39:35 +0100 |
commit | 911258bc65b3855022ee2715454076cf818d7098 (patch) | |
tree | 2dca561cf67938a0e4972aafd066682acb00d67a | |
parent | 0d8a2bfd13ecd9b118f8800531ac68ba8ef8100b (diff) | |
download | biboumi-911258bc65b3855022ee2715454076cf818d7098.tar.gz biboumi-911258bc65b3855022ee2715454076cf818d7098.tar.bz2 biboumi-911258bc65b3855022ee2715454076cf818d7098.tar.xz biboumi-911258bc65b3855022ee2715454076cf818d7098.zip |
Make AddrinfoDeleter a class
-rw-r--r-- | louloulibs/network/resolver.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/louloulibs/network/resolver.hpp b/louloulibs/network/resolver.hpp index afe6e2b..29e6f3a 100644 --- a/louloulibs/network/resolver.hpp +++ b/louloulibs/network/resolver.hpp @@ -11,8 +11,9 @@ #include <sys/socket.h> #include <netdb.h> -struct AddrinfoDeleter +class AddrinfoDeleter { + public: void operator()(struct addrinfo* addr) { #ifdef CARES_FOUND |