DxLibEx
is_representable.hpp
Go to the documentation of this file.
1 /*=============================================================================
2  Copyright (C) 2015-2017 DxLibEx project
3  https://github.com/Nagarei/DxLibEx/
4 
5  Distributed under the Boost Software License, Version 1.0.
6  (See http://www.boost.org/LICENSE_1_0.txt)
7 =============================================================================*/
8 #ifndef DXLE_INC_TYPE_TRAITS_IS_REPRESENTABLE_HPP_
9 #define DXLE_INC_TYPE_TRAITS_IS_REPRESENTABLE_HPP_
10 #include <type_traits>
12 namespace dxle {
14 namespace type_traits {
15  template < typename from, typename to >
17  : std::is_same<typename common_type<from, to>::type, to >
18  { } ;
19 }//namespace
20 using namespace type_traits;
21 }
22 #endif //DXLE_INC_TYPE_TRAITS_IS_REPRESENTABLE_HPP_
Definition: cast_if.hpp:12