From df4b9db53a955c23130508882534883e53a838c7 Mon Sep 17 00:00:00 2001 From: Guoyi Zhang Date: Mon, 18 May 2026 13:09:34 +1000 Subject: [PATCH] Add noexcept to move constructor in GList --- gclib/GList.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gclib/GList.hh b/gclib/GList.hh index a1860cb..ce0fab7 100644 --- a/gclib/GList.hh +++ b/gclib/GList.hh @@ -98,7 +98,7 @@ template class GList:public GPVec { GList(bool sorted, bool free_elements=true, bool beUnique=false); GList(int init_capacity, bool sorted, bool free_elements=true, bool beUnique=false); GList(const GList& list); //copy constructor - GList(GList&& list); //move constructor + GList(GList&& list) noexcept; //move constructor GList(GList* list); //kind of a copy constructor GList& operator=(GList& list); //copy operator GList& operator=(GList&& list); //move operator