]> www.ginac.de Git - ginac.git/blobdiff - ginac/utils.h
- replaced the Derivative() function by a more resonable fderivative class;
[ginac.git] / ginac / utils.h
index 3e8e17cae884c498773c5fb2860a8d3d1ee76795..001f64f45071473d8dfb1ee258dcf691df4f4b29 100644 (file)
 
 #include <string>
 #include <stdexcept>
-#if defined(HAVE_SSTREAM)
-#include <sstream>
-#elif defined(HAVE_STRSTREAM)
-#include <strstream>
-#else
-#error Need either sstream or strstream
-#endif
 #include "assertion.h"
 
 namespace GiNaC {
 
-// This should be obsoleted once <sstream> is widely deployed.
-template<class T>
-std::string ToString(const T & t)
-{
-#if defined(HAVE_SSTREAM)
-       std::ostringstream buf;
-       buf << t << std::ends;
-       return buf.str();
-#else
-       char buf[256];
-       std::ostrstream(buf,sizeof(buf)) << t << std::ends;
-       return buf;
-#endif
-}
-
 /** Exception class thrown by classes which provide their own series expansion
  *  to signal that ordinary Taylor expansion is safe. */
 class do_taylor {};