Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
blaze
util
constraints
Comparable.h
Go to the documentation of this file.
1
//=================================================================================================
33
//=================================================================================================
34
35
#ifndef _BLAZE_UTIL_CONSTRAINTS_COMPARABLE_H_
36
#define _BLAZE_UTIL_CONSTRAINTS_COMPARABLE_H_
37
38
39
//*************************************************************************************************
40
// Includes
41
//*************************************************************************************************
42
43
#include <
blaze/util/typetraits/IsConvertible.h
>
44
45
46
namespace
blaze
{
47
48
//=================================================================================================
49
//
50
// POINTER_MUST_BE_COMPARABLE CONSTRAINT
51
//
52
//=================================================================================================
53
54
//*************************************************************************************************
60
#define BLAZE_CONSTRAINT_POINTER_MUST_BE_COMPARABLE(P1,P2) \
61
static_assert( ::blaze::IsConvertible<P1,P2>::value || ::blaze::IsConvertible<P2,P1>::value, "Incomparable pointer types detected" );
62
//*************************************************************************************************
63
64
}
// namespace blaze
65
66
#endif
blaze
Namespace of the Blaze C++ math library.
Definition:
Blaze.h:57
IsConvertible.h
Header file for the IsConvertible type trait.
Generated on Wed Aug 24 2016 06:13:51 by
1.8.10