SCI: Fix compilation for C++98.
This commit is contained in:
parent
c51c89ca32
commit
c412478a11
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue