Hi, Il 23/07/19 22:19, Markus Koschany ha scritto: > Thanks for your analysis. I will prepare a patch after the day trip, as > soon as time permits.
No need for that, find the patch attached! I did not test the generated package, though. Maybe you could do that. Giovanni. -- Giovanni Mascellani <[email protected]> Postdoc researcher - Université Libre de Bruxelles
From: Giovanni Mascellani <[email protected]> Date: Tue, 23 Jul 2019 18:48:17 -0300 Subject: Fix compilation with GCC 9 Building with GCC 9 fails because some standard structures do not declare an overload for ==, relying on the implicit behaviour. This patch fix the generated Lua bindings so that the operator == is called, without forcing that operation to go though a specific overload function. --- scripts/update_lua_bindings.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/update_lua_bindings.sh b/scripts/update_lua_bindings.sh index c04eb01..e0e307c 100755 --- a/scripts/update_lua_bindings.sh +++ b/scripts/update_lua_bindings.sh @@ -16,3 +16,4 @@ else sed -i -e 's/const,/const /g' -e 's/tolua_outside//g' -e 's/tolua++\.h/components\/lua\/tolua++\.h/' $3 fi +sed -i -e 's/self->operator==(\(.*\));$/((*self) == (\1));/g' $3
signature.asc
Description: OpenPGP digital signature

