Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:40

0001 // Copyright David Abrahams 2002.
0002 // Distributed under the Boost Software License, Version 1.0. (See
0003 // accompanying file LICENSE_1_0.txt or copy at
0004 // http://www.boost.org/LICENSE_1_0.txt)
0005 #ifndef ARGS_FWD_DWA2002927_HPP
0006 # define ARGS_FWD_DWA2002927_HPP
0007 
0008 # include <boost/python/detail/prefix.hpp>
0009 
0010 # include <boost/python/handle.hpp>
0011 # include <boost/config.hpp>
0012 # include <cstddef>
0013 # include <utility>
0014 
0015 namespace boost { namespace python { 
0016 
0017 namespace detail
0018 {
0019   struct keyword
0020   {
0021       keyword(char const* name_=0)
0022        : name(name_)
0023       {}
0024       
0025       char const* name;
0026       handle<> default_value;
0027   };
0028   
0029   template <std::size_t nkeywords = 0> struct keywords;
0030   
0031   typedef std::pair<keyword const*, keyword const*> keyword_range;
0032   
0033   template <>
0034   struct keywords<0>
0035   {
0036       BOOST_STATIC_CONSTANT(std::size_t, size = 0);
0037       static keyword_range range() { return keyword_range(); }
0038   };
0039 
0040   namespace error
0041   {
0042     template <int keywords, int function_args>
0043     struct more_keywords_than_function_arguments
0044     {
0045         typedef char too_many_keywords[keywords > function_args ? -1 : 1];
0046     };
0047   }
0048 }
0049 
0050 }} // namespace boost::python
0051 
0052 #endif // ARGS_FWD_DWA2002927_HPP