Skip to content

Commit

Permalink
fixed init of c array as class member
Browse files Browse the repository at this point in the history
  • Loading branch information
acki-m committed Mar 18, 2018
1 parent c50628c commit 3132976
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unit_tests/property/property_member_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ struct property_member_obj_test
property_member_obj_test()
: _p1(0), _p3(1000, 42)
{
int tmp_array[4][4] = { {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0} };
rttr::detail::copy_array(tmp_array, _p11);
}


Expand All @@ -56,7 +58,7 @@ struct property_member_obj_test
const variant _p8 = 23;
int* _p9 = nullptr;
int* _p10 = &_p1;
int _p11[4][4] = {0};
int _p11[4][4];


private:
Expand Down

0 comments on commit 3132976

Please sign in to comment.