static_assert
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
template<typename Type>
|
||||
class PIP_EXPORT PIPoint {
|
||||
static_assert(std::is_arithmetic<Type>::value, "Type must be arithmetic");
|
||||
public:
|
||||
Type x;
|
||||
Type y;
|
||||
@@ -75,6 +76,7 @@ typedef PIPoint<double> PIPointd;
|
||||
|
||||
template<typename Type>
|
||||
class PIP_EXPORT PIRect {
|
||||
static_assert(std::is_arithmetic<Type>::value, "Type must be arithmetic");
|
||||
public:
|
||||
Type x0;
|
||||
Type y0;
|
||||
|
||||
Reference in New Issue
Block a user