mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user