3 #include <Poco/Logger.h>
5 #include "util/Loggable.h"
9 template <
typename Closable>
11 void operator() (Closable &c)
const
17 template <
typename Closable,
typename Close = DefaultClose<Closable>>
37 if (logger().debug()) {
39 "auto-close successful",
46 "auto-close has failed",
52 Closable *operator ->()
57 const Closable *operator ->()
const
62 Closable &operator *()
67 const Closable &operator *()
const
77 void operator() (
const int fd)
const;
Definition: AutoClose.h:18
Definition: AutoClose.h:76
Definition: AutoClose.h:10
Definition: Loggable.h:19
Definition: AutoClose.h:80