diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -160,7 +160,7 @@ template <typename ImplType, typename TypeToDelete = ImplType, typename... ArgTs inline ImplPtr<ImplType, TypeToDelete> makeImpl(ArgTs&&... args) { return ImplPtr<ImplType, TypeToDelete> { - new ImplType(std::forward<ArgTs>(args)...), + new ImplType{std::forward<ArgTs>(args)...}, [](TypeToDelete* impl) { delete impl; } }; } |