common: Add a default nullptr argument to make_unique_wrapper
[lttng-tools.git] / src / common / make-unique-wrapper.hpp
index e49e5ced779e5bc8343b32c8e4f402625555da9a..ebec2ca45d29a908a648d398a5a8dfba516afa9f 100644 (file)
@@ -70,7 +70,7 @@ void free(Type *ptr)
 template <typename WrappedType, void (*DeleterFunc)(WrappedType *)>
 std::unique_ptr<WrappedType,
                typename memory::create_deleter_class<WrappedType, DeleterFunc>::deleter>
-make_unique_wrapper(WrappedType *instance)
+make_unique_wrapper(WrappedType *instance = nullptr)
 {
        const memory::create_deleter_class<WrappedType, DeleterFunc> unique_deleter;
 
This page took 0.024357 seconds and 4 git commands to generate.