]> www.ginac.de Git - ginac.git/commit
Redone the way in which function serial numbers are stored. This allows for
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 16 Oct 2002 20:44:08 +0000 (20:44 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Wed, 16 Oct 2002 20:44:08 +0000 (20:44 +0000)
commit1b0eb6f8881286b996d8ac906df5dbb4e10215b6
tree2cf584203404fdd5a98757e50e1c06d20fe7b1ca
parent8ae6c13a74fd17e04de5c120f6514166c9401653
Redone the way in which function serial numbers are stored. This allows for
using namespace qualifiers in the is_ex_the_function() macro like this

  is_ex_the_function(e, GiNaC::sin);

and it also works with the (overloaded) zeta() and psi() functions.
Unfortunately, it's not possible to

  using GiNaC::sin;
  is_ex_the_function(e, sin);

and the is_the_function<> template is not useful outside the is_ex_the_function()
macro. Even renaming the 'sin_SERIAL' class to 'sin' (which doesn't seem to
work with gcc3) you would still have to write 'is_the_function<class sin>(e)'
instead of 'is_the_function<sin>(e)'. I currently see no better solution,
though...
ginac/function.pl
ginac/inifcns.cpp
ginac/inifcns.h
ginac/inifcns_gamma.cpp
ginac/inifcns_zeta.cpp