Problem with `is_ex_the_function'

22 Mar
2002
22 Mar
'02
6:44 p.m.
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_aGiNaC::function(OBJ) && ex_toGiNaC::function(OBJ).get_serial() == function_index_##FUNCNAME)
+
(GiNaC::is_exactly_aGiNaC::function(OBJ) && GiNaC::ex_toGiNaC::function(OBJ).get_serial() == function_index_##FUNCNAME)
} // namespace GiNaC
8446
Age (days ago)
8446
Last active (days ago)
0 comments
1 participants
participants (1)
-
Roberto Bagnara