X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Futils.h;h=0f6082a6a7b4d70fdbc195f6ebe45bf6a09c0f56;hp=3c33162ec8adc389e58b5617eeafa63082fdcc62;hb=955cb185a85535ab328ffedbfccdc508ce80fa91;hpb=24fe247f9ed16114a765a01c593fec5c4a2f591c diff --git a/ginac/utils.h b/ginac/utils.h index 3c33162e..0f6082a6 100644 --- a/ginac/utils.h +++ b/ginac/utils.h @@ -1,6 +1,7 @@ /** @file utils.h * - * Interface to several small and furry utilities. */ + * Interface to several small and furry utilities needed within GiNaC but not + * of any interest to the user of the library. */ /* * GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany @@ -28,7 +29,9 @@ #include "config.h" #include "assertion.h" +#ifndef NO_GINAC_NAMESPACE namespace GiNaC { +#endif // ndef NO_GINAC_NAMESPACE template string ToString(T const & t) @@ -38,6 +41,10 @@ string ToString(T const & t) return buf; } +/** Exception thrown by classes which provide their own series expansion to + * signal that ordinary Taylor expansion is safe. */ +class do_taylor {}; + unsigned log2(unsigned n); int compare_pointers(void const * a, void const * b); @@ -89,18 +96,18 @@ template