Allow for non default constructable proxies

svn path=/trunk/boost/libs/numeric/ublas/; revision=29864
This commit is contained in:
Michael Stevens 2005-07-01 20:26:46 +00:00
parent 6d29f0c7a7
commit 81e7706411
7 changed files with 7 additions and 21 deletions

View File

@ -31,9 +31,7 @@ struct test_my_vector {
real_type n;
// Default Construct
VP default_constuct;
initialize_vector (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
default_construct<VP>::test ();
// Copy and swap
initialize_vector (v1);

View File

@ -27,9 +27,7 @@ struct test_my_matrix {
value_type t;
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
default_construct<MP>::test ();
// Copy and swap
initialize_matrix (m1);

View File

@ -31,9 +31,7 @@ struct test_my_vector {
real_type n;
// Default Construct
VP default_constuct;
initialize_vector (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
default_construct<VP>::test ();
// Copy and swap
initialize_vector (v1);

View File

@ -27,9 +27,7 @@ struct test_my_matrix {
value_type t;
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
default_construct<MP>::test ();
// Copy and swap
initialize_matrix (m1);

View File

@ -27,9 +27,7 @@ struct test_my_matrix {
value_type t;
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
default_construct<MP>::test ();
// Copy and swap
initialize_matrix (m1);

View File

@ -27,9 +27,7 @@ struct test_my_matrix {
value_type t;
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
default_construct<MP>::test ();
// Copy and swap
initialize_matrix (m1);

View File

@ -27,9 +27,7 @@ struct test_my_matrix {
value_type t;
// Default Construct
MP default_constuct;
initialize_matrix (default_constuct);
std::cout << "default construct = " << default_constuct << std::endl;
default_construct<MP>::test ();
// Copy and swap
initialize_matrix (m1);