2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

initial commit

[SVN r16473]
This commit is contained in:
Dave Abrahams
2002-12-02 12:40:18 +00:00
parent 328697952f
commit bf8bb83ec5

View File

@@ -0,0 +1,23 @@
// Copyright David Abrahams 2002. Permission to copy, use,
// modify, sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#ifndef SHARED_PTR_DELETER_DWA2002121_HPP
# define SHARED_PTR_DELETER_DWA2002121_HPP
namespace boost { namespace python { namespace converter {
struct shared_ptr_deleter
{
shared_ptr_deleter(handle<> owner)
: owner(owner) {}
void operator()(void const*) { owner.reset(); }
handle<> owner;
};
}}} // namespace boost::python::converter
#endif // SHARED_PTR_DELETER_DWA2002121_HPP