Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82058 - branches/release/boost/polygon
From: sydorchuk.andriy_at_[hidden]
Date: 2012-12-17 17:04:57


Author: asydorchuk
Date: 2012-12-17 17:04:56 EST (Mon, 17 Dec 2012)
New Revision: 82058
URL: http://svn.boost.org/trac/boost/changeset/82058

Log:
Polygon: Sync public interface of point/segment/interval data with documentation.

Text files modified:
   branches/release/boost/polygon/interval_data.hpp | 6 ++++++
   branches/release/boost/polygon/point_data.hpp | 2 --
   branches/release/boost/polygon/segment_data.hpp | 6 ++++++
   3 files changed, 12 insertions(+), 2 deletions(-)

Modified: branches/release/boost/polygon/interval_data.hpp
==============================================================================
--- branches/release/boost/polygon/interval_data.hpp (original)
+++ branches/release/boost/polygon/interval_data.hpp 2012-12-17 17:04:56 EST (Mon, 17 Dec 2012)
@@ -45,6 +45,12 @@
     return *this;
   }
 
+ template <typename IntervalType>
+ interval_data& operator=(const IntervalType& that) {
+ assign(*this, that);
+ return *this;
+ }
+
   coordinate_type get(direction_1d dir) const {
     return coords_[dir.to_int()];
   }

Modified: branches/release/boost/polygon/point_data.hpp
==============================================================================
--- branches/release/boost/polygon/point_data.hpp (original)
+++ branches/release/boost/polygon/point_data.hpp 2012-12-17 17:04:56 EST (Mon, 17 Dec 2012)
@@ -45,13 +45,11 @@
     return *this;
   }
 
- // TODO(asydorchuk): Deprecated.
   template <typename PointType>
   explicit point_data(const PointType& that) {
     *this = that;
   }
 
- // TODO(asydorchuk): Deprecated.
   template <typename PointType>
   point_data& operator=(const PointType& that) {
     assign(*this, that);

Modified: branches/release/boost/polygon/segment_data.hpp
==============================================================================
--- branches/release/boost/polygon/segment_data.hpp (original)
+++ branches/release/boost/polygon/segment_data.hpp 2012-12-17 17:04:56 EST (Mon, 17 Dec 2012)
@@ -46,6 +46,12 @@
     return *this;
   }
 
+ template <typename SegmentType>
+ segment_data& operator=(const SegmentType& that) {
+ assign(*this, that);
+ return *this;
+ }
+
   point_type get(direction_1d dir) const {
     return points_[dir.to_int()];
   }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk