Changed the way vector<bool> works to avoid issues with XML.

XML out of order seems to be working fine but the unit tests are running into a crash on the out of order test, which
doesn't show up in the sandbox version of the same thing.  Need to debug this and out of order should be good to go
for XML.
This commit is contained in:
Shane Grant
2013-09-06 16:33:23 -07:00
parent 7137314e58
commit db0f1cf47f
4 changed files with 37 additions and 25 deletions

View File

@@ -318,12 +318,11 @@ void test_unordered_loads()
std::random_device rd;
std::mt19937 gen(rd());
auto rngB = [](){ return true; };
auto rngI = [](){ return 1; };
auto rngF = [](){ return 2.0f; };
auto rngD = [](){ return 3.2; };
for(int i=0; i<1; ++i)
for(int i=0; i<100; ++i)
{
auto const name1 = "1";
auto const name2 = "2";
@@ -335,7 +334,7 @@ void test_unordered_loads()
int o_int1 = rngI();
double o_double2 = rngD();
std::vector<bool> o_vecbool3 = { rngB(), rngB(), rngB(), rngB(), rngB() };
std::vector<bool> o_vecbool3 = { true, false, true, false, true };
int o_int4 = rngI();
int o_int5 = rngI();
int o_int6 = rngI();