aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-11-30 17:37:53 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-11-30 17:37:53 +0100
commitab4ef5e66e33dd585bed2207c7c53948e30b2875 (patch)
tree69c1b5712c34c53a9817eaa29a5cb86fc313936a /Eigen
parent3011dc94efcabf609ce4bd766fa0461c4f17b5e3 (diff)
bug #1351: fix compilation of random with old compilers
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/functors/NullaryFunctors.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/Core/functors/NullaryFunctors.h b/Eigen/src/Core/functors/NullaryFunctors.h
index 0000ea1f1..70efec3ec 100644
--- a/Eigen/src/Core/functors/NullaryFunctors.h
+++ b/Eigen/src/Core/functors/NullaryFunctors.h
@@ -173,6 +173,13 @@ template<typename Scalar, typename PacketType,typename IndexType>
struct has_unary_operator<linspaced_op<Scalar,PacketType>,IndexType> { enum { value = 1}; };
template<typename Scalar, typename PacketType,typename IndexType>
struct has_binary_operator<linspaced_op<Scalar,PacketType>,IndexType> { enum { value = 0}; };
+
+template<typename Scalar,typename IndexType>
+struct has_nullary_operator<scalar_random_op<Scalar>,IndexType> { enum { value = 1}; };
+template<typename Scalar,typename IndexType>
+struct has_unary_operator<scalar_random_op<Scalar>,IndexType> { enum { value = 0}; };
+template<typename Scalar,typename IndexType>
+struct has_binary_operator<scalar_random_op<Scalar>,IndexType> { enum { value = 0}; };
#endif
} // end namespace internal