// Copyright David Abrahams 2001. 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. #include #include #include namespace boost { namespace python { namespace converter { unwrapper_base::unwrapper_base(type_id_t key) : body(key) { registry::insert(*this); } unwrapper_base::~unwrapper_base() { if (can_unregister()) registry::remove(*this); } namespace { int arbitrary; } void* const unwrapper_base::non_null = &arbitrary; }}} // namespace boost::python::converter