[Scummvm-cvs-logs] scummvm master -> c412478a11bc715015a2a90c4fb15504bc883b8c
lordhoto
lordhoto at gmail.com
Wed Apr 6 23:23:28 CEST 2016
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:
c412478a11 SCI: Fix compilation for C++98.
Commit: c412478a11bc715015a2a90c4fb15504bc883b8c
https://github.com/scummvm/scummvm/commit/c412478a11bc715015a2a90c4fb15504bc883b8c
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2016-04-06T23:22:44+02:00
Commit Message:
SCI: Fix compilation for C++98.
Changed paths:
engines/sci/engine/savegame.cpp
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index 48d5e44..0cc1e75 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -211,7 +211,13 @@ struct ArraySyncer : Common::BinaryFunction<Common::Serializer, T, void> {
};
// Convenience wrapper
-template<typename T, class Syncer = DefaultSyncer<T>>
+template<typename T>
+void syncArray(Common::Serializer &s, Common::Array<T> &arr) {
+ ArraySyncer<T> sync;
+ sync(s, arr);
+}
+
+template<typename T, class Syncer>
void syncArray(Common::Serializer &s, Common::Array<T> &arr) {
ArraySyncer<T, Syncer> sync;
sync(s, arr);
More information about the Scummvm-git-logs
mailing list