From 4ebe657dd75999c1556c5f77625bdef2cd29917e Mon Sep 17 00:00:00 2001 From: tqchen Date: Mon, 19 Jan 2015 21:37:02 -0800 Subject: [PATCH] fix in cxx11 --- include/rabit/rabit-inl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/rabit/rabit-inl.h b/include/rabit/rabit-inl.h index d2a20eecb..e0a14f4ad 100644 --- a/include/rabit/rabit-inl.h +++ b/include/rabit/rabit-inl.h @@ -294,9 +294,9 @@ inline void SerializeReducer::Allreduce(DType *sendrecvobj, } #if __cplusplus >= 201103L -template -inline void Reducer::Allreduce(DType *sendrecvbuf, size_t count, - std::function prepare_fun) { +template +inline void Reducer::Allreduce(DType *sendrecvbuf, size_t count, + std::function prepare_fun) { this->Allreduce(sendrecvbuf, count, InvokeLambda_, &prepare_fun); } template