From 2caf67e03097eea9cbe7c0a099c36684626fcdf1 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 28 Jun 2018 16:08:03 +0200 Subject: [PATCH] Make IdentityMatrix constructor explicit --- tests/lac/identity_matrix_07.cc | 5 +++-- tests/lac/identity_matrix_07.output | 9 +-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/lac/identity_matrix_07.cc b/tests/lac/identity_matrix_07.cc index d4336f84db..2de2f96f97 100644 --- a/tests/lac/identity_matrix_07.cc +++ b/tests/lac/identity_matrix_07.cc @@ -15,7 +15,8 @@ // Check that clearing a FullMatrix using a number type convertible to -// Number is not ambiguous. +// Number is not ambiguous. Previously, IdentityMatrix(size_type) was detected +// as viable overload. #include #include @@ -27,7 +28,7 @@ int main() { initlog(); - FullMatrix> matrix1; + FullMatrix> matrix; matrix = 0.; deallog << "OK" << std::endl; diff --git a/tests/lac/identity_matrix_07.output b/tests/lac/identity_matrix_07.output index 29bcfce3a3..0fd8fc12f0 100644 --- a/tests/lac/identity_matrix_07.output +++ b/tests/lac/identity_matrix_07.output @@ -1,9 +1,2 @@ -DEAL:: 1. 2. 3. 4. -DEAL:: 1. 2. 3. 4. -DEAL:: 1. 2. 3. 4. -DEAL:: 1. 2. 3. 4. -DEAL:: 1. 2. 3. 4. -DEAL:: 1. 2. 3. 4. -DEAL:: 1. 2. 3. 4. -DEAL:: 1. 2. 3. 4. +DEAL::OK -- 2.39.5