From d5ebf62bed594d1fe6ab616a6bbcbcf0a5892d47 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 12 Jul 2005 04:23:32 +0000 Subject: port to MSVC .NET 2005 beta 2 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@198 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- polynomi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'polynomi.cpp') diff --git a/polynomi.cpp b/polynomi.cpp index cca2073..734cae9 100644 --- a/polynomi.cpp +++ b/polynomi.cpp @@ -387,12 +387,12 @@ std::ostream& PolynomialOver::Output(std::ostream &out, const Ring &ring) con 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.str().size() <= nstr.str().size()) { out << " + "; if (!i || !ring.Equal(m_coefficients[i], ring.MultiplicativeIdentity())) -- cgit v1.2.1