git://www.ginac.de
/
ginac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
synced to 1.2
[ginac.git]
/
check
/
time_dennyfliegner.cpp
diff --git
a/check/time_dennyfliegner.cpp
b/check/time_dennyfliegner.cpp
index d81ba91930551ecde72eb3931c5d2ab220adfd00..ea3b7be5abe9b812175a596ee8fbfccc16b23b77 100644
(file)
--- a/
check/time_dennyfliegner.cpp
+++ b/
check/time_dennyfliegner.cpp
@@
-7,7
+7,7
@@
* after which e should be just a1^2. */
/*
* after which e should be just a1^2. */
/*
- * GiNaC Copyright (C) 1999-200
1
Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-200
3
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
*
* 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
@@
-33,15
+33,9
@@
static unsigned expand_subs(unsigned size)
vector<symbol> a;
ex e;
for (unsigned i=0; i<size; ++i) {
vector<symbol> a;
ex e;
for (unsigned i=0; i<size; ++i) {
-#if defined(HAVE_SSTREAM)
ostringstream buf;
buf << "a" << i << ends;
a.push_back(symbol(buf.str()));
ostringstream buf;
buf << "a" << i << ends;
a.push_back(symbol(buf.str()));
-#else
- char buf[4];
- ostrstream(buf,sizeof(buf)) << "a" << i << ends;
- a.push_back(symbol(buf));
-#endif
e += a[i];
}
ex aux;
e += a[i];
}
ex aux;