Known to work with:
- Linux on x86 and x86_64 using
- - GCC 4.9, 5.1, and 5.2
+ - GCC 4.8, 4.9, 5.1, and 5.2
- Clang 3.5.0
Known not to work with:
exam_misc
exam_mod_gcd
exam_cra
+ exam_real_imag
bugme_chinrem_gcd
factor_univariate_bug
pgcd_relatively_prime_bug
set(ginaclib_private_headers
remember.h
- tostring.h
utils.h
crc32.h
hash_seed.h
operators.cpp power.cpp registrar.cpp relational.cpp remember.cpp \
pseries.cpp print.cpp symbol.cpp symmetry.cpp tensor.cpp \
utils.cpp wildcard.cpp \
- remember.h tostring.h utils.h crc32.h hash_seed.h compiler.h \
+ remember.h utils.h crc32.h hash_seed.h compiler.h \
parser/parse_binop_rhs.cpp \
parser/parser.cpp \
parser/parse_context.cpp \
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
-#include "tostring.h"
#include "version.h"
#include <iostream>
static const unsigned min_version = GINACLIB_ARCHIVE_VERSION - GINACLIB_ARCHIVE_AGE;
unsigned version = read_unsigned(is);
if ((version > max_version) || (version < min_version))
- throw (std::runtime_error("archive version " + ToString(version) + " cannot be read by this GiNaC library (which supports versions " + ToString(min_version) + " thru " + ToString(max_version)));
+ throw (std::runtime_error("archive version " + std::to_string(version) + " cannot be read by this GiNaC library (which supports versions " + std::to_string(min_version) + " thru " + std::to_string(max_version)));
// Read atoms
unsigned num_atoms = read_unsigned(is);
#include "power.h"
#include "archive.h"
#include "inifcns.h"
-#include "tostring.h"
#include "utils.h"
#include "hash_seed.h"
#include "remember.h"
return serial;
++serial;
}
- throw (std::runtime_error("no function '" + name + "' with " + ToString(nparams) + " parameters defined"));
+ throw (std::runtime_error("no function '" + name + "' with " + std::to_string(nparams) + " parameters defined"));
}
/** Return the print name of the function. */
#include "ex.h"
#include "operators.h"
#include "archive.h"
-#include "tostring.h"
#include "utils.h"
#include <limits>
// E to lower case
term = term.replace(term.find("E"),1,"e");
// append _<Digits> to term
- term += "_" + ToString((unsigned)Digits);
+ term += "_" + std::to_string((unsigned)Digits);
// construct float using cln::cl_F(const char *) ctor.
if (imaginary)
ctorval = ctorval + cln::complex(cln::cl_I(0),cln::cl_F(term.c_str()));
#include "symbol.h"
#include "lst.h"
#include "archive.h"
-#include "tostring.h"
#include "utils.h"
#include "hash_seed.h"
#include "inifcns.h"
std::string symbol::get_name() const
{
if (name.empty()) {
- std::ostringstream s;
- s << "symbol" << serial;
- name = s.str();
+ name = "symbol" + std::to_string(serial);
}
return name;
}
+++ /dev/null
-/** @file tostring.h
- *
- * Convert object to its string representation (output form). This is an
- * internal header file. */
-
-/*
- * GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef GINAC_TOSTRING_H
-#define GINAC_TOSTRING_H
-
-#include <sstream>
-
-namespace GiNaC {
-
-template<class T>
-std::string ToString(const T & t)
-{
- std::ostringstream buf;
- buf << t;
- return buf.str();
-}
-
-} // namespace GiNaC
-
-#endif // ndef GINAC_TOSTRING_H