Skip to content
Snippets Groups Projects
Commit e3365445 authored by Jared Roesch's avatar Jared Roesch Committed by Tianqi Chen
Browse files

[FIX] Fix issue with TypedPackedFunc template instatition (#1649)

parent 3dbc0d64
No related branches found
No related tags found
No related merge requests found
......@@ -180,9 +180,7 @@ class TypedPackedFunc<R(Args...)> {
*
* \param packed The packed function
*/
explicit TypedPackedFunc(PackedFunc packed)
: packed_(packed) {
}
inline explicit TypedPackedFunc(PackedFunc packed);
/*!
* \brief construct from a lambda function with the same signature.
*
......@@ -925,6 +923,8 @@ inline PackedFunc::FType PackedFunc::body() const {
return body_;
}
// internal namespace
namespace detail {
......@@ -1131,6 +1131,10 @@ struct typed_packed_call_dispatcher<void> {
};
} // namespace detail
template<typename R, typename ...Args>
TypedPackedFunc<R(Args...)>::TypedPackedFunc(PackedFunc packed)
: packed_(packed) {}
template<typename R, typename ...Args>
template<typename FType>
inline void TypedPackedFunc<R(Args...)>::AssignTypedLambda(FType flambda) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment