Erase with const_iterator is allowed in C++11 so I didn't notice this
before.
list<Target *> 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;
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) &&