Skip to content

Commit

Permalink
Merge pull request #342 from ABRG-Models/dev/trait_test_var_init
Browse files Browse the repository at this point in the history
Fix potential build error
  • Loading branch information
sebjameswml authored Feb 12, 2025
2 parents 6e2a344 + 0f1a033 commit 7663a64
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_trait_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ int main()

float f = 0.0f;
bool float_can = set_from (f);
std::array<double, 10> c;
std::array<double, 10> c = {0.0};
bool array_can = set_from (c);

std::vector<double> c2;
std::vector<double> c2 = {0.0};
bool vector_can = set_from (c2);

// I want false returned for std::map as this can't be set_from. So it's not JUST that map has
Expand All @@ -99,13 +99,13 @@ int main()
//std::map<int, double> c3;
//bool map_can = set_from (c3);

std::set<double> c4;
std::set<double> c4 = {};
bool set_can = set_from (c4);

std::complex<float> c5;
std::complex<float> c5 = {};
bool complex_can = complex_from (c5);

float c6;
float c6 = 0.0f;
bool float_is_complex = complex_from (c6);

if (float_can || !array_can || !vector_can || !set_can || !complex_can || float_is_complex) {
Expand Down

0 comments on commit 7663a64

Please sign in to comment.