2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 15:52:18 +00:00

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 9dd032a3da
commit 70e3860a6e
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);