Skip to content

Commit

Permalink
g++47 support fix USCiLab#354
Browse files Browse the repository at this point in the history
  • Loading branch information
AzothAmmo committed Oct 27, 2016
1 parent 74030ce commit d27cc33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cereal/details/polymorphic_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ namespace cereal

// Insert reverse relation Derived->Base
auto & reverseMap = StaticObject<PolymorphicCasters>::getInstance().reverseMap;
reverseMap.emplace( derivedKey, baseKey );
reverseMap.insert( {derivedKey, baseKey} );

// Find all chainable unregistered relations
/* The strategy here is to process only the nodes in the class hierarchy graph that have been
Expand Down Expand Up @@ -335,7 +335,7 @@ namespace cereal
{
auto & derivedMap = baseMap.find( it.first )->second;
derivedMap[it.second.first] = it.second.second;
reverseMap.emplace( it.second.first, it.first );
reverseMap.insert( {it.second.first, it.first} );
}

// Mark current parent as modified
Expand Down

0 comments on commit d27cc33

Please sign in to comment.