From: Mikko Rasa Date: Fri, 6 Jan 2017 02:36:15 +0000 (+0200) Subject: Compilation fix X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=54d0a3516164312bf9d04f455e2aad2af225aa51;p=builder.git Compilation fix Erase with const_iterator is allowed in C++11 so I didn't notice this before. --- 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) &&