Remove boost::foreach from public headers (#3820)

* remove include from headers

* update implementation files

* completely remove BOOST_FOREACH (#7)

* convert those changes to use auto

* get rid of all usage of BOOST_FOREACH

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
This commit is contained in:
Ric
2021-02-17 08:15:48 -05:00
committed by GitHub
parent fb432f52f1
commit 703fe5a225
73 changed files with 956 additions and 942 deletions

View File

@@ -948,7 +948,7 @@ void testMMFFMultiThread() {
fut.get();
}
BOOST_FOREACH (ROMol *mol, mols) { delete mol; }
for (auto *mol : mols) { delete mol; }
BOOST_LOG(rdErrorLog) << " done" << std::endl;
}

View File

@@ -79,7 +79,7 @@ void testMMFFMultiThread() {
std::cerr << "processing" << std::endl;
for (unsigned int i = 0; i < count; ++i) {
std::cerr << " launch :" << i << std::endl;
std::cerr.flush();
std::cerr.flush();
tg.emplace_back(std::async(std::launch::async, runblock_mmff, mols[i]));
}
for (auto &fut : tg) {
@@ -87,8 +87,8 @@ void testMMFFMultiThread() {
}
std::cerr << "done" << std::endl;
for(unsigned int i=0; i<count; ++i)
BOOST_FOREACH (ROMol *mol, mols[i]) { delete mol; }
for (auto *mol : mols[i]) { delete mol; }
BOOST_LOG(rdErrorLog) << " done" << std::endl;
}

View File

@@ -1278,7 +1278,7 @@ void testUFFMultiThread() {
fut.get();
}
BOOST_FOREACH (ROMol *mol, mols) { delete mol; }
for (auto *mol : mols) { delete mol; }
BOOST_LOG(rdErrorLog) << " done" << std::endl;
}