From 63022fd37a4f052d9eb30b7018b32eb46eb1c4fd Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 10 Mar 2024 20:16:22 +0000 Subject: [PATCH] Fix error: template-id not allowed for constructor in C++20 (#1731) --- include/splay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/splay.h b/include/splay.h index a905a85147..e698c01c34 100644 --- a/include/splay.h +++ b/include/splay.h @@ -21,7 +21,7 @@ public: typedef V Value; typedef int SPLAYCMP(Value const &a, Value const &b); - SplayNode (Value const &); + SplayNode(const Value &); Value data; mutable SplayNode *left; mutable SplayNode *right; -- 2.39.2