]> www.ginac.de Git - ginac.git/blobdiff - ginac/utils.h
- put everything in "GiNaC" namespace
[ginac.git] / ginac / utils.h
index b78d46a32f04c91cd5826f32f36bc02551ffb28c..edde75fcde3ff071cd7e8ed4b88bcfc9a6840d99 100644 (file)
@@ -27,6 +27,8 @@
 #include <string>
 #include "config.h"
 
+namespace GiNaC {
+
 template<class T>
 string ToString(T const & t)
 {
@@ -39,9 +41,6 @@ unsigned log2(unsigned n);
 
 int compare_pointers(void const * a, void const * b);
 
-#define DYNCONSTCAST(FINALTYPE,BASICTYPE,EXPRESSION) \
-    dynamic_cast<FINALTYPE>(const_cast<BASICTYPE>(EXPRESSION))
-
 // modified from stl_algo.h: always do com(*first1,*first2) instead of comp(*first2,*first1)
 template <class InputIterator1, class InputIterator2, class OutputIterator,
           class Compare>
@@ -90,4 +89,6 @@ OutputIterator mymerge3(InputIterator1 first1, InputIterator1 last1,
   }
 }
 
+} // namespace GiNaC
+
 #endif // ndef __GINAC_UTILS_H__