From 73b3955dd48c85e41a701c8a9869d27a4d5b1101 Mon Sep 17 00:00:00 2001 From: rpopescu Date: Thu, 11 Jan 2024 05:10:21 +0100 Subject: [PATCH] Fix FieldEntry ctor specialisation syntax error (#9980) Co-authored-by: Radu Popescu --- include/xgboost/parameter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xgboost/parameter.h b/include/xgboost/parameter.h index fca05cef4..063f1aca7 100644 --- a/include/xgboost/parameter.h +++ b/include/xgboost/parameter.h @@ -53,7 +53,7 @@ namespace parameter { \ template <> \ class FieldEntry : public FieldEntry { \ public: \ - FieldEntry() { \ + FieldEntry() { \ static_assert( \ std::is_same::type>::value, \ "enum class must be backed by int"); \