提交 7ad55a4e 编写于 作者: X xuwei06 提交者: Yu Yang

Fix ThreadParameterUpdater

The reference return type causes ThreadParameterUpdater.cpp:123 seg fault under gcc5.4.

Change-Id: I7a1c155892722076a7cb48793b83d5ee525747d1
上级 721b09ee
......@@ -79,7 +79,7 @@ protected:
// The update function for after update operations, such as averager.
void threadTraverse(const ParameterOptimizer::TraverseCallback& callback,
int tid, size_t numThreads, Parameter* para);
typedef std::function<const ParameterOptimizer::TraverseCallback&(Parameter*)>
typedef std::function<const ParameterOptimizer::TraverseCallback(Parameter*)>
GetTraverseCallback;
void traverse(GetTraverseCallback getTraverseCallback);
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册