diff --git a/src/Imath/ImathTypeTraits.h b/src/Imath/ImathTypeTraits.h index 60c85e1c..c3ad212a 100644 --- a/src/Imath/ImathTypeTraits.h +++ b/src/Imath/ImathTypeTraits.h @@ -85,8 +85,8 @@ template struct has_xy // Valid only if .x, .y exist and are the right type: return a Yes. template < typename C, - IMATH_ENABLE_IF (std::is_same::value), - IMATH_ENABLE_IF (std::is_same::value)> + IMATH_ENABLE_IF (std::is_same::value), + IMATH_ENABLE_IF (std::is_same::value)> static Yes& test (int); // Fallback, default to returning a No. @@ -113,9 +113,9 @@ template struct has_xyz // Valid only if .x, .y, .z exist and are the right type: return a Yes. template < typename C, - IMATH_ENABLE_IF (std::is_same::value), - IMATH_ENABLE_IF (std::is_same::value), - IMATH_ENABLE_IF (std::is_same::value)> + IMATH_ENABLE_IF (std::is_same::value), + IMATH_ENABLE_IF (std::is_same::value), + IMATH_ENABLE_IF (std::is_same::value)> static Yes& test (int); // Fallback, default to returning a No. @@ -142,10 +142,10 @@ template struct has_xyzw // Valid only if .x, .y, .z, .w exist and are the right type: return a Yes. template < typename C, - IMATH_ENABLE_IF (std::is_same::value), - IMATH_ENABLE_IF (std::is_same::value), - IMATH_ENABLE_IF (std::is_same::value), - IMATH_ENABLE_IF (std::is_same::value)> + IMATH_ENABLE_IF (std::is_same::value), + IMATH_ENABLE_IF (std::is_same::value), + IMATH_ENABLE_IF (std::is_same::value), + IMATH_ENABLE_IF (std::is_same::value)> static Yes& test (int); // Fallback, default to returning a No. @@ -173,7 +173,7 @@ template struct has_subscript template < typename C, IMATH_ENABLE_IF (std::is_same< - typename std::decay::type, + typename std::decay::type, Base>::value)> static Yes& test (int); @@ -208,7 +208,7 @@ struct has_double_subscript template < typename C, IMATH_ENABLE_IF (std::is_same< - typename std::decay::type, + typename std::decay::type, Base>::value)> static Yes& test (int);