mirror of
https://github.com/USCiLab/cereal.git
synced 2025-09-22 21:09:33 +02:00
doc update and fix minor bug with vector test
This commit is contained in:
parent
fd02187150
commit
33180eac14
@ -92,7 +92,7 @@ namespace cereal
|
||||
ar( static_cast<bool>( *it ) );
|
||||
}
|
||||
|
||||
//! Serialization for non-arithmetic (not bool) vector types
|
||||
//! Serialization for bool vector types
|
||||
template <class Archive, class A> inline
|
||||
void load( Archive & ar, std::vector<bool, A> & vector )
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user