sl@0: // Copyright David Abrahams 2002. sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: #ifndef SLICE_NIL_DWA2002620_HPP sl@0: # define SLICE_NIL_DWA2002620_HPP sl@0: sl@0: # include sl@0: # include sl@0: sl@0: namespace boost { namespace python { namespace api { sl@0: sl@0: class slice_nil : public object sl@0: { sl@0: public: sl@0: slice_nil() : object() {} sl@0: }; sl@0: sl@0: # ifndef _ // Watch out for GNU gettext users, who #define _(x) sl@0: static const slice_nil _ = slice_nil(); sl@0: # endif sl@0: sl@0: template sl@0: struct slice_bound sl@0: { sl@0: typedef object type; sl@0: }; sl@0: sl@0: template <> sl@0: struct slice_bound sl@0: { sl@0: typedef slice_nil type; sl@0: }; sl@0: sl@0: } sl@0: sl@0: using api::slice_nil; sl@0: # ifndef _ // Watch out for GNU gettext users, who #define _(x) sl@0: using api::_; sl@0: # endif sl@0: sl@0: }} // namespace boost::python sl@0: sl@0: #endif // SLICE_NIL_DWA2002620_HPP