projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Correct use of taskset in snapshot tests
[lttng-tools.git]
/
src
/
common
/
make-unique-wrapper.hpp
diff --git
a/src/common/make-unique-wrapper.hpp
b/src/common/make-unique-wrapper.hpp
index ebec2ca45d29a908a648d398a5a8dfba516afa9f..a0a4b541a2fd64bc7c01da8babd6b5c01bb54d5c 100644
(file)
--- a/
src/common/make-unique-wrapper.hpp
+++ b/
src/common/make-unique-wrapper.hpp
@@
-34,7
+34,7
@@
namespace lttng {
* create_my_c_struct());
*
* Note that this facility is intended for use in the scope of a function.
* create_my_c_struct());
*
* Note that this facility is intended for use in the scope of a function.
- * If you need to return this unique_ptr instance, you should consider writ
t
ing
+ * If you need to return this unique_ptr instance, you should consider writing
* a proper, idiomatic, wrapper.
*/
* a proper, idiomatic, wrapper.
*/
@@
-53,7
+53,6
@@
struct create_deleter_class {
return std::unique_ptr<WrappedType, deleter>(instance);
}
};
return std::unique_ptr<WrappedType, deleter>(instance);
}
};
-} /* namespace memory */
/*
* 'free' is a utility function for use with make_unique_wrapper. It makes it easier to
/*
* 'free' is a utility function for use with make_unique_wrapper. It makes it easier to
@@
-66,6
+65,7
@@
void free(Type *ptr)
{
std::free(ptr);
}
{
std::free(ptr);
}
+} /* namespace memory */
template <typename WrappedType, void (*DeleterFunc)(WrappedType *)>
std::unique_ptr<WrappedType,
template <typename WrappedType, void (*DeleterFunc)(WrappedType *)>
std::unique_ptr<WrappedType,
This page took
0.024452 seconds
and
4
git commands to generate.