Skip to content
Snippets Groups Projects
Commit 86df9ec3 authored by Elias Pipping's avatar Elias Pipping Committed by Max Kahnt
Browse files

Use std::enable_if_t consistently

parent bc7acf9f
Branches
No related tags found
1 merge request!3Feature/multitype arithmetic
......@@ -72,7 +72,7 @@ namespace MatrixVector {
* 1-dim vector or a 1 by 1 matrix.
*/
template <class A, class B, class C, class D>
typename std::enable_if<ScalarTraits<B>::isScalar, void>::type addProduct(
typename std::enable_if_t<ScalarTraits<B>::isScalar, void> addProduct(
A& a, const B& b, const C& c, const D& d) {
ScaledProductHelper<A, B, C, D, ScalarTraits<A>::isScalar,
ScalarTraits<C>::isScalar,
......@@ -91,7 +91,7 @@ namespace MatrixVector {
* 1-dim vector or a 1 by 1 matrix.
*/
template <class A, class B, class C, class D>
typename std::enable_if<ScalarTraits<B>::isScalar, void>::type
typename std::enable_if_t<ScalarTraits<B>::isScalar, void>
subtractProduct(A& a, const B& b, const C& c, const D& d) {
ScaledProductHelper<A, B, C, D, ScalarTraits<A>::isScalar,
ScalarTraits<C>::isScalar,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment