diff options
author | 2014-07-01 17:51:53 +0200 | |
---|---|---|
committer | 2014-07-01 17:51:53 +0200 | |
commit | 6f846ef9c6ef3e838d1361a30dc11f65ddff967d (patch) | |
tree | 4f78d3c7d1ba7b959229342b68125053e1daf51f /Eigen/src/Core/products | |
parent | 3c63446507dbbc891e44b58af07f12f6ef58a175 (diff) |
Split StorageKind promotion into two helpers: one for products, and one for coefficient-wise operations.
Diffstat (limited to 'Eigen/src/Core/products')
-rw-r--r-- | Eigen/src/Core/products/CoeffBasedProduct.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Eigen/src/Core/products/CoeffBasedProduct.h b/Eigen/src/Core/products/CoeffBasedProduct.h index 85e8ac2c7..76806fd62 100644 --- a/Eigen/src/Core/products/CoeffBasedProduct.h +++ b/Eigen/src/Core/products/CoeffBasedProduct.h @@ -42,8 +42,9 @@ struct traits<CoeffBasedProduct<LhsNested,RhsNested,NestingFlags> > typedef typename remove_all<LhsNested>::type _LhsNested; typedef typename remove_all<RhsNested>::type _RhsNested; typedef typename scalar_product_traits<typename _LhsNested::Scalar, typename _RhsNested::Scalar>::ReturnType Scalar; - typedef typename promote_storage_type<typename traits<_LhsNested>::StorageKind, - typename traits<_RhsNested>::StorageKind>::ret StorageKind; + typedef typename product_promote_storage_type<typename traits<_LhsNested>::StorageKind, + typename traits<_RhsNested>::StorageKind, + 0>::ret StorageKind; typedef typename promote_index_type<typename traits<_LhsNested>::Index, typename traits<_RhsNested>::Index>::type Index; |