Last change
on this file since 44 was
44,
checked in by cholod, 12 years ago
|
Load NEMO_TMP into vendor/nemo/current.
|
File size:
942 bytes
|
Line | |
---|
1 | // (C) Copyright John Maddock 2007. |
---|
2 | // Use, modification and distribution are subject to the Boost Software License, |
---|
3 | // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
---|
4 | // http://www.boost.org/LICENSE_1_0.txt). |
---|
5 | // |
---|
6 | // See http://www.boost.org/libs/type_traits for most recent version including documentation. |
---|
7 | |
---|
8 | #ifndef BOOST_TT_IS_COMPLEX_HPP |
---|
9 | #define BOOST_TT_IS_COMPLEX_HPP |
---|
10 | |
---|
11 | #include <boost/type_traits/is_convertible.hpp> |
---|
12 | #include <complex> |
---|
13 | // should be the last #include |
---|
14 | #include <boost/type_traits/detail/bool_trait_def.hpp> |
---|
15 | |
---|
16 | |
---|
17 | namespace boost { |
---|
18 | namespace detail{ |
---|
19 | |
---|
20 | struct is_convertible_from_tester |
---|
21 | { |
---|
22 | template <class T> |
---|
23 | is_convertible_from_tester(const std::complex<T>&); |
---|
24 | }; |
---|
25 | |
---|
26 | } |
---|
27 | |
---|
28 | BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_complex,T,(::boost::is_convertible<T, boost::detail::is_convertible_from_tester>::value)) |
---|
29 | |
---|
30 | } // namespace boost |
---|
31 | |
---|
32 | #include <boost/type_traits/detail/bool_trait_undef.hpp> |
---|
33 | |
---|
34 | #endif //BOOST_TT_IS_COMPLEX_HPP |
---|
Note: See
TracBrowser
for help on using the repository browser.