blob: f1d9713ea11bd55817af8fb830777bf96652e551 [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001// (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
Jeff Thompson3d613fd2013-10-15 15:39:04 -07008#ifndef NDNBOOST_TT_IS_COMPLEX_HPP
9#define NDNBOOST_TT_IS_COMPLEX_HPP
Jeff Thompsona28eed82013-08-22 16:21:10 -070010
11#include <ndnboost/type_traits/is_convertible.hpp>
12#include <complex>
13// should be the last #include
14#include <ndnboost/type_traits/detail/bool_trait_def.hpp>
15
16
17namespace ndnboost {
18namespace detail{
19
20struct is_convertible_from_tester
21{
22 template <class T>
23 is_convertible_from_tester(const std::complex<T>&);
24};
25
26}
27
Jeff Thompson3d613fd2013-10-15 15:39:04 -070028NDNBOOST_TT_AUX_BOOL_TRAIT_DEF1(is_complex,T,(::ndnboost::is_convertible<T, ndnboost::detail::is_convertible_from_tester>::value))
Jeff Thompsona28eed82013-08-22 16:21:10 -070029
30} // namespace ndnboost
31
32#include <ndnboost/type_traits/detail/bool_trait_undef.hpp>
33
Jeff Thompson3d613fd2013-10-15 15:39:04 -070034#endif //NDNBOOST_TT_IS_COMPLEX_HPP