]> www.ginac.de Git - ginac.git/blobdiff - ginac/utils.h
- put everything in "GiNaC" namespace
[ginac.git] / ginac / utils.h
index 259527eef74669fadab04c35bc2bb2ab7436169b..edde75fcde3ff071cd7e8ed4b88bcfc9a6840d99 100644 (file)
@@ -1,7 +1,8 @@
 /** @file utils.h
  *
 /** @file utils.h
  *
- *  Interface to several small and furry utilities.
- *
+ *  Interface to several small and furry utilities. */
+
+/*
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,6 +27,8 @@
 #include <string>
 #include "config.h"
 
 #include <string>
 #include "config.h"
 
+namespace GiNaC {
+
 template<class T>
 string ToString(T const & t)
 {
 template<class T>
 string ToString(T const & t)
 {
@@ -38,9 +41,6 @@ unsigned log2(unsigned n);
 
 int compare_pointers(void const * a, void const * b);
 
 
 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>
 // modified from stl_algo.h: always do com(*first1,*first2) instead of comp(*first2,*first1)
 template <class InputIterator1, class InputIterator2, class OutputIterator,
           class Compare>
@@ -89,4 +89,6 @@ OutputIterator mymerge3(InputIterator1 first1, InputIterator1 last1,
   }
 }
 
   }
 }
 
+} // namespace GiNaC
+
 #endif // ndef __GINAC_UTILS_H__
 #endif // ndef __GINAC_UTILS_H__