Problem with `is_ex_the_function'
Dear all, there is a bug in macro `is_ex_the_function' defined in ginac/function.h. As it is now, the macro only works if the file is included in a context where using declarations are in effect, since a couple of GiNaC:: qualifications are missing. I enclose a patch fixing the problem. All the best Roberto -- Prof. Roberto Bagnara Computer Science Group Department of Mathematics, University of Parma, Italy http://www.cs.unipr.it/~bagnara/ mailto:bagnara@cs.unipr.it diff -ru GiNaC-1.0.7.orig/ginac/function.h GiNaC-1.0.7/ginac/function.h --- GiNaC-1.0.7.orig/ginac/function.h Sun Jan 27 18:39:38 2002 +++ GiNaC-1.0.7/ginac/function.h Fri Mar 22 16:18:43 2002 @@ -416,7 +416,7 @@ } #define is_ex_the_function(OBJ, FUNCNAME) \ - (is_exactly_a<GiNaC::function>(OBJ) && ex_to<GiNaC::function>(OBJ).get_serial() == function_index_##FUNCNAME) + (GiNaC::is_exactly_a<GiNaC::function>(OBJ) && GiNaC::ex_to<GiNaC::function>(OBJ).get_serial() == function_index_##FUNCNAME) } // namespace GiNaC
participants (1)
-
Roberto Bagnara