| Last change
                  on this file since 44 was
                  29,
                  checked in by landauf, 17 years ago | 
        
          | 
updated boost from 1_33_1 to 1_34_1
 | 
        | File size:
            912 bytes | 
      
      
        
  | Line |  | 
|---|
| 1 | // Copyright David Abrahams 2002. | 
|---|
| 2 | // Distributed under the Boost Software License, Version 1.0. (See | 
|---|
| 3 | // accompanying file LICENSE_1_0.txt or copy at | 
|---|
| 4 | // http://www.boost.org/LICENSE_1_0.txt) | 
|---|
| 5 | #ifndef SLICE_NIL_DWA2002620_HPP | 
|---|
| 6 | # define SLICE_NIL_DWA2002620_HPP | 
|---|
| 7 |  | 
|---|
| 8 | # include <boost/python/detail/prefix.hpp> | 
|---|
| 9 | # include <boost/python/object_core.hpp> | 
|---|
| 10 |  | 
|---|
| 11 | namespace boost { namespace python { namespace api { | 
|---|
| 12 |  | 
|---|
| 13 | class slice_nil : public object | 
|---|
| 14 | { | 
|---|
| 15 | public: | 
|---|
| 16 | slice_nil() : object() {} | 
|---|
| 17 | }; | 
|---|
| 18 |  | 
|---|
| 19 | # ifndef _ // Watch out for GNU gettext users, who #define _(x) | 
|---|
| 20 | static const slice_nil _ = slice_nil(); | 
|---|
| 21 | # endif | 
|---|
| 22 |  | 
|---|
| 23 | template <class T> | 
|---|
| 24 | struct slice_bound | 
|---|
| 25 | { | 
|---|
| 26 | typedef object type; | 
|---|
| 27 | }; | 
|---|
| 28 |  | 
|---|
| 29 | template <> | 
|---|
| 30 | struct slice_bound<slice_nil> | 
|---|
| 31 | { | 
|---|
| 32 | typedef slice_nil type; | 
|---|
| 33 | }; | 
|---|
| 34 |  | 
|---|
| 35 | } | 
|---|
| 36 |  | 
|---|
| 37 | using api::slice_nil; | 
|---|
| 38 | # ifndef _ // Watch out for GNU gettext users, who #define _(x) | 
|---|
| 39 | using api::_; | 
|---|
| 40 | # endif | 
|---|
| 41 |  | 
|---|
| 42 | }} // namespace boost::python | 
|---|
| 43 |  | 
|---|
| 44 | #endif // SLICE_NIL_DWA2002620_HPP | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.