removed implementation-reliant use of emplace_back

This commit is contained in:
Jack Andersen 2015-09-27 11:17:11 -10:00
parent 4eae909848
commit a999744ab6
2 changed files with 4 additions and 4 deletions

View File

@ -527,7 +527,7 @@ public:
vector.reserve(count); vector.reserve(count);
enterSubVector(name); enterSubVector(name);
for (size_t i=0 ; i<count ; ++i) for (size_t i=0 ; i<count ; ++i)
vector.emplace_back(readVal<T>(name)); vector.push_back(readVal<T>(name));
leaveSubVector(); leaveSubVector();
} }

View File

@ -939,7 +939,7 @@ public:
vector.clear(); vector.clear();
vector.reserve(count); vector.reserve(count);
for (size_t i=0 ; i<count ; ++i) for (size_t i=0 ; i<count ; ++i)
vector.emplace_back(readVal<T>()); vector.push_back(readVal<T>());
} }
/** @brief Performs automatic std::vector enumeration reads using numeric type T /** @brief Performs automatic std::vector enumeration reads using numeric type T
@ -959,7 +959,7 @@ public:
vector.clear(); vector.clear();
vector.reserve(count); vector.reserve(count);
for (size_t i=0 ; i<count ; ++i) for (size_t i=0 ; i<count ; ++i)
vector.emplace_back(readValLittle<T>()); vector.push_back(readValLittle<T>());
} }
/** @brief Performs automatic std::vector enumeration reads using numeric type T /** @brief Performs automatic std::vector enumeration reads using numeric type T
@ -979,7 +979,7 @@ public:
vector.clear(); vector.clear();
vector.reserve(count); vector.reserve(count);
for (size_t i=0 ; i<count ; ++i) for (size_t i=0 ; i<count ; ++i)
vector.emplace_back(readValBig<T>()); vector.push_back(readValBig<T>());
} }
/** @brief Performs automatic std::vector enumeration reads using non-numeric type T /** @brief Performs automatic std::vector enumeration reads using non-numeric type T