Skip to content

Commit

Permalink
Fixes issue 8262 (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Gasco authored Apr 27, 2020
1 parent 4bd4e3c commit 9060988
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/fastcdr/Cdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -2152,16 +2152,14 @@ namespace eprosima

try
{
//map_t.resize(seqLength);
_K key;
_T value;
for (uint32_t i = 0; i < seqLength; ++i)
{
_K key;
_T value;
*this >> key;
*this >> value;
map_t.emplace(std::pair<_K, _T>(key, value));
map_t.emplace(std::pair<_K, _T>(std::move(key), std::move(value)));
}
//return deserializeArray(vector_t.data(), vector_t.size());
}
catch(eprosima::fastcdr::exception::Exception &ex)
{
Expand Down

0 comments on commit 9060988

Please sign in to comment.