]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/python/include/boost/python/detail/enable_if.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / python / include / boost / python / detail / enable_if.hpp
CommitLineData
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
13namespace boost { namespace python { namespace detail {
14
15template <class C, class T = int>
16struct enable_if_arg
17 : enable_if<C,T>
18{};
19
20template <class C, class T = int>
21struct disable_if_arg
22 : disable_if<C,T>
23{};
24
25template <class C, class T = void>
26struct enable_if_ret
27 : enable_if<C,T>
28{};
29
30template <class C, class T = void>
31struct 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