From fccfcd4a9f51f9d97a693a9b301157a9aa88db6f Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 20 Nov 2021 22:40:56 +0000 Subject: (list)~struct List is not necessary Slight whiplash from change to C++, can just use typename now. --- list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'list.cpp') diff --git a/list.cpp b/list.cpp index 8c671a1..937e7a7 100644 --- a/list.cpp +++ b/list.cpp @@ -14,9 +14,9 @@ struct List }; template -struct List *append(struct List *lst, T value) +List *append(List *lst, T value) { - struct List *node; + List *node; if (lst == NULL) { node = new List; -- cgit v1.2.3-13-gbd6f