X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Ffunction.pl;h=495432bbff3cd4e8d8fc8b56550a22f474f1a149;hp=1c6ce2972ed3e9ed4ae855c953685c4ff91a7ac4;hb=d6ab150eb3016ddb416f0533606ae3a393003e9e;hpb=3aec0ba298693329c1194e547043fef1a78b1b0d diff --git a/ginac/function.pl b/ginac/function.pl index 1c6ce297..495432bb 100644 --- a/ginac/function.pl +++ b/ginac/function.pl @@ -1388,7 +1388,9 @@ unsigned function::find_function(const std::string &name, unsigned nparams) /** Return the print name of the function. */ std::string function::get_name() const { - GINAC_ASSERT(serial= registered_functions().size() ) { + throw std::runtime_error("unknown function"); + } return registered_functions()[serial].name; }