Replaced BOOST_FOREACH with C++11 range-based for loops
[pulseview.git] / pv / data / logic.cpp
index d13cd766cc69f9eabfed4930ab6c4550ce9a7808..9bcfd0a382ac39c020d396007d07a4e1885fbef8 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#include <boost/foreach.hpp>
-
 #include "logic.h"
 #include "logicsnapshot.h"
 
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::deque;
+using std::max;
 
 namespace pv {
 namespace data {
@@ -60,7 +59,7 @@ void Logic::clear()
 uint64_t Logic::get_max_sample_count() const
 {
        uint64_t l = 0;
-       BOOST_FOREACH(boost::shared_ptr<LogicSnapshot> s, _snapshots) {
+       for (boost::shared_ptr<LogicSnapshot> s : _snapshots) {
                assert(s);
                l = max(l, s->get_sample_count());
        }