This is necessary to build on my system, with g++ 3.3.

--Zooko

HACL yumyum:~/playground/crypto++/dw-stdstreamstringthing/c5$ darcs diff -u 
-p'replace sstream'
Tue Jun 21 16:11:51 ADT 2005  [EMAIL PROTECTED]
  * replace sstream with stringstream
diff -rN -u old-dw-stdstreamstringthing/c5/polynomi.cpp 
new-dw-stdstreamstringthing/c5/polynomi.cpp
--- old-dw-stdstreamstringthing/c5/polynomi.cpp 2005-08-08 17:10:08.159953856 
-0300
+++ new-dw-stdstreamstringthing/c5/polynomi.cpp 2005-08-08 16:12:51.000000000 
-0300
@@ -387,12 +387,12 @@
                                else
                                {
                                        CoefficientType inverse = 
ring.Inverse(m_coefficients[i]);
-                                       std::ostrstream pstr, nstr;
+                                       std::ostringstream pstr, nstr;
 
                                        pstr << m_coefficients[i];
                                        nstr << inverse;
 
-                                       if (pstr.pcount() <= nstr.pcount())
+                                       if (pstr.tellp() <= nstr.tellp())
                                        {
                                                out << " + "; 
                                                if (!i || 
!ring.Equal(m_coefficients[i], ring.MultiplicativeIdentity()))

Reply via email to