From 2dee8c540cc657a515dc947f124f64c3c5e262ce Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Wed, 22 Sep 2004 18:01:06 +0000 Subject: [PATCH] all type default constructed with init --- test1/test11.cpp | 1 + test1/test13.cpp | 1 + test3/test31.cpp | 5 +++++ test3/test33.cpp | 5 +++++ test4/test43.cpp | 1 + test5/test53.cpp | 1 + test6/test63.cpp | 1 + 7 files changed, 15 insertions(+) diff --git a/test1/test11.cpp b/test1/test11.cpp index a4ed5228..753eb3ae 100644 --- a/test1/test11.cpp +++ b/test1/test11.cpp @@ -38,6 +38,7 @@ struct test_my_vector { // Default Construct VP default_constuct; + initialize_vector (default_constuct); std::cout << "default construct = " << default_constuct << std::endl; // Copy and swap diff --git a/test1/test13.cpp b/test1/test13.cpp index 83ac7296..6f821515 100644 --- a/test1/test13.cpp +++ b/test1/test13.cpp @@ -35,6 +35,7 @@ struct test_my_matrix { // Default Construct MP default_constuct; + initialize_matrix (default_constuct); std::cout << "default construct = " << default_constuct << std::endl; // Copy and swap diff --git a/test3/test31.cpp b/test3/test31.cpp index ac8fa2f4..fea6b2c2 100644 --- a/test3/test31.cpp +++ b/test3/test31.cpp @@ -37,6 +37,11 @@ struct test_my_vector { size_type i; real_type n; + // Default Construct + VP default_constuct; + initialize_vector (default_constuct); + std::cout << "default construct = " << default_constuct << std::endl; + // Copy and swap initialize_vector (v1); initialize_vector (v2); diff --git a/test3/test33.cpp b/test3/test33.cpp index 5f1b00a3..2ef48917 100644 --- a/test3/test33.cpp +++ b/test3/test33.cpp @@ -38,6 +38,11 @@ struct test_my_matrix { { value_type t; + // Default Construct + MP default_constuct; + initialize_matrix (default_constuct); + std::cout << "default construct = " << default_constuct << std::endl; + // Copy and swap initialize_matrix (m1); initialize_matrix (m2); diff --git a/test4/test43.cpp b/test4/test43.cpp index 62576116..69246eb3 100644 --- a/test4/test43.cpp +++ b/test4/test43.cpp @@ -36,6 +36,7 @@ struct test_my_matrix { // Default Construct MP default_constuct; + initialize_matrix (default_constuct); std::cout << "default construct = " << default_constuct << std::endl; // Copy and swap diff --git a/test5/test53.cpp b/test5/test53.cpp index 82a97d02..e996ac0e 100644 --- a/test5/test53.cpp +++ b/test5/test53.cpp @@ -36,6 +36,7 @@ struct test_my_matrix { // Default Construct MP default_constuct; + initialize_matrix (default_constuct); std::cout << "default construct = " << default_constuct << std::endl; // Copy and swap diff --git a/test6/test63.cpp b/test6/test63.cpp index 46e91164..e33c207e 100644 --- a/test6/test63.cpp +++ b/test6/test63.cpp @@ -37,6 +37,7 @@ struct test_my_matrix { // Default Construct MP default_constuct; + initialize_matrix (default_constuct); std::cout << "default construct = " << default_constuct << std::endl; // Copy and swap