SCI: Fix compilation for C++98.

This commit is contained in:
Johannes Schickel 2016-04-06 23:22:44 +02:00
parent c51c89ca32
commit c412478a11

View file

@ -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);