From 54d0a3516164312bf9d04f455e2aad2af225aa51 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 6 Jan 2017 04:36:15 +0200 Subject: [PATCH] Compilation fix Erase with const_iterator is allowed in C++11 so I didn't notice this before. --- source/binarycomponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/binarycomponent.cpp b/source/binarycomponent.cpp index 74ac0ba..49c4897 100644 --- a/source/binarycomponent.cpp +++ b/source/binarycomponent.cpp @@ -56,7 +56,7 @@ void BinaryComponent::create_targets() const list objs; SourceList source_filenames = collect_source_files(); - for(SourceList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i) + for(SourceList::iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i) { string ext = FS::extpart(FS::basename(*i)); Target *src = 0; @@ -71,7 +71,7 @@ void BinaryComponent::create_targets() const if(processing_unit!=Tool::ONE_FILE) { FS::Path source_dir = FS::dirname(*i); - SourceList::const_iterator j = i; + SourceList::iterator j = i; for(++j; j!=source_filenames.end(); ) { if((processing_unit!=Tool::DIRECTORY || FS::dirname(*j)==source_dir) && -- 2.43.0