diff options
Diffstat (limited to 'src/util.hpp')
-rw-r--r-- | src/util.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.hpp b/src/util.hpp index d712d3b..ad55604 100644 --- a/src/util.hpp +++ b/src/util.hpp @@ -23,6 +23,8 @@ namespace WebStat { values); } + using FilePtr = std::unique_ptr<std::FILE, DeleteWith<&fclose>>; + template<typename... T> void bindMany(const DB::CommandPtr & cmd, unsigned int firstParam, T &&... param) |