]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Copyright David Abrahams 2004. Distributed under the Boost |
2 | // Software License, Version 1.0. (See accompanying | |
3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
4 | #ifndef ENABLE_IF_DWA2004722_HPP | |
5 | # define ENABLE_IF_DWA2004722_HPP | |
6 | ||
7 | # include <boost/python/detail/sfinae.hpp> | |
8 | # include <boost/detail/workaround.hpp> | |
9 | ||
10 | #if !defined(BOOST_NO_SFINAE) | |
11 | # include <boost/utility/enable_if.hpp> | |
12 | ||
13 | namespace boost { namespace python { namespace detail { | |
14 | ||
15 | template <class C, class T = int> | |
16 | struct enable_if_arg | |
17 | : enable_if<C,T> | |
18 | {}; | |
19 | ||
20 | template <class C, class T = int> | |
21 | struct disable_if_arg | |
22 | : disable_if<C,T> | |
23 | {}; | |
24 | ||
25 | template <class C, class T = void> | |
26 | struct enable_if_ret | |
27 | : enable_if<C,T> | |
28 | {}; | |
29 | ||
30 | template <class C, class T = void> | |
31 | struct disable_if_ret | |
32 | : disable_if<C,T> | |
33 | {}; | |
34 | ||
35 | }}} // namespace boost::python::detail | |
36 | ||
37 | # endif | |
38 | ||
39 | #endif // ENABLE_IF_DWA2004722_HPP |