diff options
author | jeanluc@chromium.org <jeanluc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-30 22:46:44 +0000 |
---|---|---|
committer | jeanluc@chromium.org <jeanluc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-30 22:46:44 +0000 |
commit | b70386476df8f11fbad872195f48518b20b20b41 (patch) | |
tree | a268e4a159d0ad9fd28afc0deaab18f0cc9d604a /chrome/common | |
parent | 07eb4aae66c697e052a0bb04047d468bc441a22c (diff) | |
download | chromium_src-b70386476df8f11fbad872195f48518b20b20b41.zip chromium_src-b70386476df8f11fbad872195f48518b20b20b41.tar.gz chromium_src-b70386476df8f11fbad872195f48518b20b20b41.tar.bz2 |
Add the include <iterator> or change the usage of back_inserter to avoid compilation errors in Visual Studio 2010. See http://blogs.msdn.com/b/vcblog/archive/2009/05/25/stl-breaking-changes-in-visual-studio-2010-beta-1.aspx for details.
BUG=71134
TEST=Run the related tests.
Review URL: http://codereview.chromium.org/6260024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/net/x509_certificate_model.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/net/x509_certificate_model.cc b/chrome/common/net/x509_certificate_model.cc index 076d974..2d4ffd0 100644 --- a/chrome/common/net/x509_certificate_model.cc +++ b/chrome/common/net/x509_certificate_model.cc @@ -16,7 +16,7 @@ std::string ProcessIDN(const std::string& input) { // Convert the ASCII input to a string16 for ICU. string16 input16; input16.reserve(input.length()); - std::copy(input.begin(), input.end(), std::back_inserter(input16)); + input16.insert(input16.end(), input.begin(), input.end()); string16 output16; output16.resize(input.length()); |