diff options
author | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
---|---|---|
committer | weidai <weidai11@users.noreply.github.com> | 2005-07-12 04:23:32 +0000 |
commit | 1db8ea50840eb47f0f7d8f3c30d8e0916932ce90 (patch) | |
tree | 4b03760892a97a9bc452ebe8b7793bbebd402ad4 /polynomi.cpp | |
parent | 31068bd68590654dc218bbb183a2ca71bb4af08b (diff) | |
download | cryptopp-git-1db8ea50840eb47f0f7d8f3c30d8e0916932ce90.tar.gz |
port to MSVC .NET 2005 beta 2
Diffstat (limited to 'polynomi.cpp')
-rw-r--r-- | polynomi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polynomi.cpp b/polynomi.cpp index cca20732..734cae92 100644 --- a/polynomi.cpp +++ b/polynomi.cpp @@ -387,12 +387,12 @@ std::ostream& PolynomialOver<T>::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())) |