]> sigrok.org Git - pulseview.git/blobdiff - pv/data/analog.cpp
Replaced boost::shared_ptr with std::shared_ptr
[pulseview.git] / pv / data / analog.cpp
index dd4097a8d2a7cea131e7d3eea6912a4caead690e..53fa9a5a62b117c5a1258cdc09dd05d1fc1cf446 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#include <boost/foreach.hpp>
-
 #include "analog.h"
 #include "analogsnapshot.h"
 
-using namespace boost;
-using namespace std;
+using std::deque;
+using std::max;
+using std::shared_ptr;
 
 namespace pv {
 namespace data {
@@ -52,7 +51,7 @@ void Analog::clear()
 uint64_t Analog::get_max_sample_count() const
 {
        uint64_t l = 0;
-       BOOST_FOREACH(const boost::shared_ptr<AnalogSnapshot> s, _snapshots) {
+       for (const std::shared_ptr<AnalogSnapshot> s : _snapshots) {
                assert(s);
                l = max(l, s->get_sample_count());
        }