Skip to content

Commit

Permalink
Fix FieldEntry ctor specialisation syntax error (dmlc#9980)
Browse files Browse the repository at this point in the history
Co-authored-by: Radu Popescu <[email protected]>
  • Loading branch information
2 people authored and trivialfis committed Jul 22, 2024
1 parent 10fc854 commit 1ef095f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/xgboost/parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace parameter { \
template <> \
class FieldEntry<EnumClass> : public FieldEntry<int> { \
public: \
FieldEntry<EnumClass>() { \
FieldEntry() { \
static_assert( \
std::is_same<int, typename std::underlying_type<EnumClass>::type>::value, \
"enum class must be backed by int"); \
Expand Down

0 comments on commit 1ef095f

Please sign in to comment.