Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / gil / iterator_from_2d.hpp
index 1b9e8d7..b916e54 100644 (file)
@@ -67,10 +67,11 @@ public:
     bool            is_1d_traversable() const { return _p.is_1d_traversable(width()); }   // is there no gap at the end of each row?
     x_iterator&     x()                   { return _p.x(); }
 
-    iterator_from_2d(){}
+    iterator_from_2d() = default;
     iterator_from_2d(const Loc2& p, std::ptrdiff_t width, std::ptrdiff_t x=0, std::ptrdiff_t y=0) : _coords(x,y), _width(width), _p(p) {}
     iterator_from_2d(const iterator_from_2d& pit) : _coords(pit._coords), _width(pit._width), _p(pit._p) {}
     template <typename Loc> iterator_from_2d(const iterator_from_2d<Loc>& pit) : _coords(pit._coords), _width(pit._width), _p(pit._p) {}
+    iterator_from_2d& operator=(iterator_from_2d const& other) = default;
 
 private:
     template <typename Loc> friend class iterator_from_2d;