diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-11-30 17:37:53 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-11-30 17:37:53 +0100 |
commit | ab4ef5e66e33dd585bed2207c7c53948e30b2875 (patch) | |
tree | 69c1b5712c34c53a9817eaa29a5cb86fc313936a /Eigen | |
parent | 3011dc94efcabf609ce4bd766fa0461c4f17b5e3 (diff) |
bug #1351: fix compilation of random with old compilers
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/functors/NullaryFunctors.h | 7 |
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 |