unit tests for priority_queue, fixed bug in priority_queue

This commit is contained in:
Randolph Voorhies
2013-06-14 16:15:43 -07:00
parent 6fc81554dc
commit 7c3c3781ce
2 changed files with 73 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ namespace cereal
{
C container;
ar & container;
priority_queue = std::priority_queue<T, C, Comp>( std::move( container ) );
priority_queue = std::priority_queue<T, C, Comp>( container.begin(), container.end() );
}
} // namespace cereal