diff options
author | Johannes Schickel | 2016-04-06 23:22:44 +0200 |
---|---|---|
committer | Johannes Schickel | 2016-04-06 23:22:44 +0200 |
commit | c412478a11bc715015a2a90c4fb15504bc883b8c (patch) | |
tree | e8b983787a607687c220fdda489610d137981a70 /engines | |
parent | c51c89ca3232a4bb128949b033f8f771aeff6dc3 (diff) | |
download | scummvm-rg350-c412478a11bc715015a2a90c4fb15504bc883b8c.tar.gz scummvm-rg350-c412478a11bc715015a2a90c4fb15504bc883b8c.tar.bz2 scummvm-rg350-c412478a11bc715015a2a90c4fb15504bc883b8c.zip |
SCI: Fix compilation for C++98.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 48d5e44fb9..0cc1e752e1 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); |