doc update and fix minor bug with vector test

This commit is contained in:
Shane Grant
2014-03-14 00:20:41 -07:00
parent fd02187150
commit 33180eac14
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ void test_vector()
for(auto & elem : o_podvector)
elem = random_value<int>(gen);
std::vector<bool> o_boolvector; o_boolvector.reserve(100);
std::vector<bool> o_boolvector; o_boolvector.resize(100);
for( size_t i = 0; i < 100; ++i )
o_boolvector[i] = (random_value<int>(gen) % 2) == 0;