fix in cxx11

This commit is contained in:
tqchen 2015-01-19 21:37:02 -08:00
parent 85b746394e
commit 4ebe657dd7

View File

@ -294,9 +294,9 @@ inline void SerializeReducer<DType>::Allreduce(DType *sendrecvobj,
} }
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
template<typename DType> template<typename DType, void (*freduce)(DType &dst, const DType &src)>
inline void Reducer<DType>::Allreduce(DType *sendrecvbuf, size_t count, inline void Reducer<DType, freduce>::Allreduce(DType *sendrecvbuf, size_t count,
std::function<void()> prepare_fun) { std::function<void()> prepare_fun) {
this->Allreduce(sendrecvbuf, count, InvokeLambda_, &prepare_fun); this->Allreduce(sendrecvbuf, count, InvokeLambda_, &prepare_fun);
} }
template<typename DType> template<typename DType>