Skip to content

Commit

Permalink
SCI: Fix compilation for C++98.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Apr 6, 2016
1 parent c51c89c commit c412478
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion engines/sci/engine/savegame.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit c412478

Please sign in to comment.