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 /tools/imagediff | |
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 'tools/imagediff')
-rw-r--r-- | tools/imagediff/image_diff.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/imagediff/image_diff.cc b/tools/imagediff/image_diff.cc index 2973987..1dac4a7 100644 --- a/tools/imagediff/image_diff.cc +++ b/tools/imagediff/image_diff.cc @@ -100,7 +100,7 @@ class Image { unsigned char buf[buf_size]; size_t num_read = 0; while ((num_read = fread(buf, 1, buf_size, f)) > 0) { - std::copy(buf, &buf[num_read], std::back_inserter(compressed)); + compressed.insert(compressed.end(), buf, buf + num_read); } file_util::CloseFile(f); |