Sanitize some standard headers, remove include directives of unused
headers, complete configure check for used standard headers.
ginac_cv_std_cxx_headers="no"
AC_LANG_PUSH([C++])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <algorithm>
+ #include <cstring>
+ #include <cstddef>
+ #include <ctime>
+ #include <fstream>
+ #include <functional>
+ #include <iomanip>
+ #include <ios>
#include <iosfwd>
#include <iostream>
- #include <vector>
+ #include <iterator>
+ #include <limits>
#include <list>
#include <map>
+ #include <memory>
+ #include <numeric>
+ #include <ostream>
#include <set>
- #include <string>
#include <sstream>
- #include <typeinfo>
+ #include <stack>
#include <stdexcept>
- #include <algorithm>
- #include <limits>
- #include <ctime>
+ #include <string>
+ #include <typeinfo>
+ #include <utility>
+ #include <vector>
]])], [ginac_cv_std_cxx_headers="yes"])
AC_LANG_POP([C++])])
if test "${ginac_cv_std_cxx_headers}" != "yes"; then
- AC_MSG_ERROR([Standard ISO C++ 98 headers are missing])
+ AC_MSG_ERROR([Standard ISO C++ headers are missing])
fi
])
#include "assertion.h"
#include "registrar.h"
-// CINT needs <algorithm> to work properly with <vector>
-#include <algorithm>
#include <cstddef> // for size_t
#include <map>
#include <set>
#include <functional>
#include <iosfwd>
#include <iterator>
+#include <memory>
#include <stack>
namespace GiNaC {
#include <algorithm>
#include <iostream>
#include <iterator>
+#include <memory>
#include <stdexcept>
#include <string>
#include "expair.h"
#include "indexed.h"
-// CINT needs <algorithm> to work properly with <vector> and <list>
-#include <algorithm>
-#include <list>
-#include <memory>
#include <vector>
namespace GiNaC {
typedef std::vector<expair> epvector; ///< expair-vector
typedef epvector::iterator epp; ///< expair-vector pointer
-typedef std::list<epp> epplist; ///< list of expair-vector pointers
-typedef std::vector<epplist> epplistvector; ///< vector of epplist
/** Complex conjugate every element of an epvector. Returns zero if this
* does not change anything. */
#include <limits>
#include <list>
#include <vector>
+#include <stack>
#ifdef DEBUGFACTOR
#include <ostream>
#endif
#include "exprseq.h"
-// CINT needs <algorithm> to work properly with <vector>
-#include <algorithm>
#include <string>
#include <vector>
#include "print.h"
#include "utils.h"
-#include <iomanip>
#include <iostream>
namespace GiNaC {