diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-17 22:56:47 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-17 22:56:47 +0100 |
commit | 7edc4328bfd5eee557108ebdb4243ca06914c41e (patch) | |
tree | fd01761ed57c6f5d31409c7777b4c0c127a1e482 /apps/apps.h | |
parent | 5d6e4c971857b5e05d7c277e7eafcb9d64dbc6a7 (diff) | |
download | ble-toys-7edc4328bfd5eee557108ebdb4243ca06914c41e.tar.gz ble-toys-7edc4328bfd5eee557108ebdb4243ca06914c41e.tar.bz2 ble-toys-7edc4328bfd5eee557108ebdb4243ca06914c41e.tar.xz ble-toys-7edc4328bfd5eee557108ebdb4243ca06914c41e.zip |
o cout and unique_ptr became complicated.
o Updating lots of code to the latest api.
Diffstat (limited to 'apps/apps.h')
-rw-r--r-- | apps/apps.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/apps.h b/apps/apps.h index 1995e43..03ec68f 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -35,6 +35,13 @@ int launch_app(int argc, char *argv[], app &app); std::string get_hostname(); +template<typename T> +class noop_delete { +public: + void operator()(T *) const { + } +}; + static inline void noop_deleter(void *) { } |