Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/python/args_fwd.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
| author | Chris Cannam |
|---|---|
| date | Tue, 30 Jul 2019 12:25:44 +0100 |
| parents | 2665513ce2d3 |
| children |
| rev | line source |
|---|---|
| Chris@16 | 1 // Copyright David Abrahams 2002. |
| Chris@16 | 2 // Distributed under the Boost Software License, Version 1.0. (See |
| Chris@16 | 3 // accompanying file LICENSE_1_0.txt or copy at |
| Chris@16 | 4 // http://www.boost.org/LICENSE_1_0.txt) |
| Chris@16 | 5 #ifndef ARGS_FWD_DWA2002927_HPP |
| Chris@16 | 6 # define ARGS_FWD_DWA2002927_HPP |
| Chris@16 | 7 |
| Chris@16 | 8 # include <boost/python/detail/prefix.hpp> |
| Chris@16 | 9 |
| Chris@16 | 10 # include <boost/python/handle.hpp> |
| Chris@16 | 11 # include <boost/config.hpp> |
| Chris@16 | 12 # include <cstddef> |
| Chris@16 | 13 # include <utility> |
| Chris@16 | 14 |
| Chris@16 | 15 namespace boost { namespace python { |
| Chris@16 | 16 |
| Chris@16 | 17 namespace detail |
| Chris@16 | 18 { |
| Chris@16 | 19 struct keyword |
| Chris@16 | 20 { |
| Chris@16 | 21 keyword(char const* name_=0) |
| Chris@16 | 22 : name(name_) |
| Chris@16 | 23 {} |
| Chris@16 | 24 |
| Chris@16 | 25 char const* name; |
| Chris@16 | 26 handle<> default_value; |
| Chris@16 | 27 }; |
| Chris@16 | 28 |
| Chris@16 | 29 template <std::size_t nkeywords = 0> struct keywords; |
| Chris@16 | 30 |
| Chris@16 | 31 typedef std::pair<keyword const*, keyword const*> keyword_range; |
| Chris@16 | 32 |
| Chris@16 | 33 template <> |
| Chris@16 | 34 struct keywords<0> |
| Chris@16 | 35 { |
| Chris@16 | 36 BOOST_STATIC_CONSTANT(std::size_t, size = 0); |
| Chris@16 | 37 static keyword_range range() { return keyword_range(); } |
| Chris@16 | 38 }; |
| Chris@16 | 39 |
| Chris@16 | 40 namespace error |
| Chris@16 | 41 { |
| Chris@16 | 42 template <int keywords, int function_args> |
| Chris@16 | 43 struct more_keywords_than_function_arguments |
| Chris@16 | 44 { |
| Chris@16 | 45 typedef char too_many_keywords[keywords > function_args ? -1 : 1]; |
| Chris@16 | 46 }; |
| Chris@16 | 47 } |
| Chris@16 | 48 } |
| Chris@16 | 49 |
| Chris@16 | 50 }} // namespace boost::python |
| Chris@16 | 51 |
| Chris@16 | 52 #endif // ARGS_FWD_DWA2002927_HPP |
