X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmake-unique-wrapper.hpp;h=ebec2ca45d29a908a648d398a5a8dfba516afa9f;hb=49cddecdbb1e042877ca3855b177ade68151030f;hp=e49e5ced779e5bc8343b32c8e4f402625555da9a;hpb=f053d40c60b9dd38da27d88412dcac3a8404324c;p=lttng-tools.git diff --git a/src/common/make-unique-wrapper.hpp b/src/common/make-unique-wrapper.hpp index e49e5ced7..ebec2ca45 100644 --- a/src/common/make-unique-wrapper.hpp +++ b/src/common/make-unique-wrapper.hpp @@ -70,7 +70,7 @@ void free(Type *ptr) template std::unique_ptr::deleter> -make_unique_wrapper(WrappedType *instance) +make_unique_wrapper(WrappedType *instance = nullptr) { const memory::create_deleter_class unique_deleter;