[ekiga/ds-gtk-application] null_deleter: Added a NULL deleter.



commit 9731a2df3b9af2972f7c776e2add2b74446b8c69
Author: Damien Sandras <dsandras beip be>
Date:   Sun Apr 6 16:41:32 2014 +0200

    null_deleter: Added a NULL deleter.
    
    This is commonly used with boost smart pointers.

 lib/engine/framework/null-deleter.h |   48 +++++++++++++++++++++++++++++++++++
 1 files changed, 48 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/framework/null-deleter.h b/lib/engine/framework/null-deleter.h
new file mode 100644
index 0000000..013dd29
--- /dev/null
+++ b/lib/engine/framework/null-deleter.h
@@ -0,0 +1,48 @@
+
+/* Ekiga -- A VoIP and Video-Conferencing application
+ * Copyright (C) 2000-2014 Damien Sandras <dsandras seconix com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ *
+ * Ekiga is licensed under the GPL license and as a special exception,
+ * you have permission to link or otherwise combine this program with the
+ * programs OPAL, OpenH323 and PWLIB, and distribute the combination,
+ * without applying the requirements of the GNU GPL to the OPAL, OpenH323
+ * and PWLIB programs, as long as you do follow the requirements of the
+ * GNU GPL for all the rest of the software thus combined.
+ */
+
+
+/*
+ *                         null_deleter.h  -  description
+ *                         ------------------------------
+ *   begin                : written in February 2014 by Damien Sandras
+ *   copyright            : (c) 2014 by Damien Sandras
+ *   description          : A NULL deleter for smart pointers.
+ *
+ */
+
+#ifndef __NULL_DELETER_H__
+#define __NULL_DELETER_H__
+
+struct null_deleter2
+{
+    void operator()(void const *) const
+    {
+    }
+};
+
+#endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]