Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2015, 7:10:56 PM (9 years ago)
Author:
muemart
Message:

Use emplace_back instead of push_back if beneficial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/class/Identifier.h

    r10916 r10918  
    363363
    364364            // Add pointer of type T to the map in the Identifiable instance that enables "dynamic_casts"
    365             object->objectPointers_.push_back(std::make_pair(this->getClassID(), static_cast<void*>(object)));
     365            object->objectPointers_.emplace_back(this->getClassID(), static_cast<void*>(object));
    366366            return false;
    367367        }
Note: See TracChangeset for help on using the changeset viewer.