mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-26 05:02:16 +00:00
all type default constructed with init
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user