From: Daniel Arndt Date: Thu, 28 Jun 2018 14:08:03 +0000 (+0200) Subject: Make IdentityMatrix constructor explicit X-Git-Tag: v9.1.0-rc1~970^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2caf67e03097eea9cbe7c0a099c36684626fcdf1;p=dealii.git Make IdentityMatrix constructor explicit --- 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