Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55272 - sandbox/fmhess/boost/generic_ptr
From: fmhess_at_[hidden]
Date: 2009-07-30 14:45:00


Author: fmhess
Date: 2009-07-29 15:54:21 EDT (Wed, 29 Jul 2009)
New Revision: 55272
URL: http://svn.boost.org/trac/boost/changeset/55272

Log:
Added generic_ptr::null_deleter.

Added:
   sandbox/fmhess/boost/generic_ptr/null_deleter.hpp (contents, props changed)

Added: sandbox/fmhess/boost/generic_ptr/null_deleter.hpp
==============================================================================
--- (empty file)
+++ sandbox/fmhess/boost/generic_ptr/null_deleter.hpp 2009-07-29 15:54:21 EDT (Wed, 29 Jul 2009)
@@ -0,0 +1,30 @@
+//
+// generic_ptr/null_deleter.hpp
+//
+// Copyright (c) 2009 Frank Mori Hess
+//
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+//
+// See http://www.boost.org/libs/generic_ptr for documentation.
+//
+
+#ifndef BOOST_GENERIC_PTR_NULL_DELETER_HPP_INCLUDED
+#define BOOST_GENERIC_PTR_NULL_DELETER_INCLUDED
+
+namespace boost
+{
+ namespace generic_ptr
+ {
+ class null_deleter
+ {
+ public:
+ template<typename T>
+ void operator()(const T&)
+ {}
+ };
+ } // namespace generic_ptr
+} // namespace boost
+
+#endif // #ifndef BOOST_GENERIC_PTR_NULL_DELETER_HPP_INCLUDED


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk