Page 1 sur 1
Table crash
Publié : mar. oct. 08, 2024 8:00 pm
par ftneek
Attempting to assign a second value to a table causes a crash
In the terminal is this message:
libc++abi: terminating due to uncaught exception of type std::__1::bad_function_call: std::exception
Re: Table crash
Publié : jeu. oct. 10, 2024 7:39 am
par parisse
Indeed, seems related to a recent change that was suggested to me to be compatible with cpp11 functional headers, if I make the following change in gen.h line 444, it works here
Code : Tout sélectionner
#if 0 //def CPP11
typedef std::map<gen,gen,std::function<bool(const gen &, const gen &)> > gen_map;
#else
typedef std::map<gen,gen,comparegen> gen_map;
#endif
Does it work on your side?
Re: Table crash
Publié : jeu. oct. 10, 2024 9:18 am
par ftneek
That seems to resolve the crash on my side.
Re: Table crash
Publié : jeu. oct. 10, 2024 10:17 am
par parisse
Ok, then I will keep this version. If someone complains about issues compiling with "new" libstdc++ headers, I'll debug. I do not understand why compatibility is not maintained by some implementations...