[Scummvm-git-logs] scummvm master -> 5f24ed9a833c1d9abcab73c8836220b526d070e0

bluegr noreply at scummvm.org
Sun Aug 11 16:46:40 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5f24ed9a83 COMMON: Remove emplace_back variant from Std::vector


Commit: 5f24ed9a833c1d9abcab73c8836220b526d070e0
    https://github.com/scummvm/scummvm/commit/5f24ed9a833c1d9abcab73c8836220b526d070e0
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2024-08-11T19:46:37+03:00

Commit Message:
COMMON: Remove emplace_back variant from Std::vector

Changed paths:
    common/std/vector.h


diff --git a/common/std/vector.h b/common/std/vector.h
index 72f4b4cedf2..8acd223ac49 100644
--- a/common/std/vector.h
+++ b/common/std/vector.h
@@ -103,13 +103,6 @@ public:
 	vector(size_t newSize, const T &elem) : Common::Array<T>(newSize, elem) {}
 	vector(std::initializer_list<T> list) : Common::Array<T>(list) {}
 
-
-	template<class... Args>
-	void emplace_back(Args... args) {
-		T tmp(args...);
-		this->push_back(tmp);
-	}
-
 	using Common::Array<T>::insert;
 
 	void insert(const T &element) {




More information about the Scummvm-git-logs mailing list