X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fmake-unique-wrapper.hpp;h=e49e5ced779e5bc8343b32c8e4f402625555da9a;hb=f053d40c60b9dd38da27d88412dcac3a8404324c;hp=9381ce9711d2b57a257310bc52217d239995fc13;hpb=b50fbe868463594a65f84215badd52ae1bcc581e;p=lttng-tools.git diff --git a/src/common/make-unique-wrapper.hpp b/src/common/make-unique-wrapper.hpp index 9381ce971..e49e5ced7 100644 --- a/src/common/make-unique-wrapper.hpp +++ b/src/common/make-unique-wrapper.hpp @@ -38,9 +38,9 @@ namespace lttng { * a proper, idiomatic, wrapper. */ -namespace details { +namespace memory { template -struct create_unique_class { +struct create_deleter_class { struct deleter { void operator()(WrappedType *instance) const { @@ -53,7 +53,7 @@ struct create_unique_class { return std::unique_ptr(instance); } }; -} /* namespace details */ +} /* namespace memory */ /* * 'free' is a utility function for use with make_unique_wrapper. It makes it easier to @@ -69,10 +69,10 @@ void free(Type *ptr) template std::unique_ptr::deleter> + typename memory::create_deleter_class::deleter> make_unique_wrapper(WrappedType *instance) { - const details::create_unique_class unique_deleter; + const memory::create_deleter_class unique_deleter; return unique_deleter(instance); }