[Scummvm-git-logs] scummvm master -> 0aa12e9802a6e25bd8ec2728691fed0950725cca

bluegr noreply at scummvm.org
Sun Feb 8 22:17:23 UTC 2026


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

Summary:
0aa12e9802 COMMON: make Common::Pair constexpr


Commit: 0aa12e9802a6e25bd8ec2728691fed0950725cca
    https://github.com/scummvm/scummvm/commit/0aa12e9802a6e25bd8ec2728691fed0950725cca
Author: Michael Kuerbis (michael_kuerbis at web.de)
Date: 2026-02-09T00:17:19+02:00

Commit Message:
COMMON: make Common::Pair constexpr

Changed paths:
    common/util.h


diff --git a/common/util.h b/common/util.h
index 1fc198cbad6..e43460c4c10 100644
--- a/common/util.h
+++ b/common/util.h
@@ -177,25 +177,25 @@ struct Pair {
 	T1 first;
 	T2 second;
 
-	Pair() {
+	constexpr Pair() {
 	}
 
-	Pair(const Pair &other) : first(other.first), second(other.second) {
+	constexpr Pair(const Pair &other) : first(other.first), second(other.second) {
 	}
 
-	Pair(Pair &&other) : first(Common::move(other.first)), second(Common::move(other.second)) {
+	constexpr Pair(Pair &&other) : first(Common::move(other.first)), second(Common::move(other.second)) {
 	}
 
-	Pair(const T1 &first_, const T2 &second_) : first(first_), second(second_) {
+	constexpr Pair(const T1 &first_, const T2 &second_) : first(first_), second(second_) {
 	}
 
-	Pair(T1 &&first_, T2 &&second_) : first(Common::move(first_)), second(Common::move(second_)) {
+	constexpr Pair(T1 &&first_, T2 &&second_) : first(Common::move(first_)), second(Common::move(second_)) {
 	}
 
-	Pair(T1 &&first_, const T2 &second_) : first(Common::move(first_)), second(second_) {
+	constexpr Pair(T1 &&first_, const T2 &second_) : first(Common::move(first_)), second(second_) {
 	}
 
-	Pair(const T1 &first_, T2 &&second_) : first(first_), second(Common::move(second_)) {
+	constexpr Pair(const T1 &first_, T2 &&second_) : first(first_), second(Common::move(second_)) {
 	}
 
 	Pair &operator=(const Pair &other) {




More information about the Scummvm-git-logs mailing list