Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77927 - sandbox/gtl/boost/polygon
From: sydorchuk.andriy_at_[hidden]
Date: 2012-04-11 19:23:10


Author: asydorchuk
Date: 2012-04-11 19:23:09 EDT (Wed, 11 Apr 2012)
New Revision: 77927
URL: http://svn.boost.org/trac/boost/changeset/77927

Log:
Fixing build on linux.

Text files modified:
   sandbox/gtl/boost/polygon/voronoi.hpp | 4 ++--
   sandbox/gtl/boost/polygon/voronoi_builder.hpp | 2 +-
   2 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/gtl/boost/polygon/voronoi.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/voronoi.hpp (original)
+++ sandbox/gtl/boost/polygon/voronoi.hpp 2012-04-11 19:23:09 EDT (Wed, 11 Apr 2012)
@@ -30,7 +30,7 @@
 
 template <typename PC, typename VD>
 static inline void construct_voronoi(const PC &points, VD *output,
- typename enable_if<typename gtl_if<typename is_point_concept<typename geometry_concept<typename std::iterator_traits<typename PC::iterator>::value_type>::type>::type>::type>::type * = 0) {
+ typename enable_if<typename gtl_if<typename is_point_concept<typename geometry_concept<typename PC::value_type>::type>::type>::type>::type * = 0) {
   default_voronoi_builder builder;
   builder.insert(points.begin(), points.end());
   builder.construct(output);
@@ -45,7 +45,7 @@
 
 template <typename PC, typename SC, typename VD>
 static inline void construct_voronoi(const PC &points, const SC &segments, VD *output,
- typename enable_if<typename gtl_if<typename is_point_concept<typename geometry_concept<typename std::iterator_traits<typename PC::iterator>::value_type>::type>::type>::type>::type * = 0) {
+ typename enable_if<typename gtl_if<typename is_point_concept<typename geometry_concept<typename PC::value_type>::type>::type>::type>::type * = 0) {
   default_voronoi_builder builder;
   builder.insert_sites(
     points.begin(), points.end(), segments.begin(), segments.end());

Modified: sandbox/gtl/boost/polygon/voronoi_builder.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/voronoi_builder.hpp (original)
+++ sandbox/gtl/boost/polygon/voronoi_builder.hpp 2012-04-11 19:23:09 EDT (Wed, 11 Apr 2012)
@@ -61,7 +61,7 @@
 
   template <typename PointIterator>
   void insert(PointIterator first_point, PointIterator last_point,
- typename enable_if<typename gtl_if<typename is_point_concept<typename geometry_concept<typename std::iterator_traits<PointIterator>::value_type>::type>::type>::type>::type * = 0) {
+ typename enable_if<typename gtl_if<typename is_point_concept<typename geometry_concept<typename PointIterator::value_type>::type>::type>::type>::type * = 0) {
     // Create a site event from each input point.
     for (PointIterator it = first_point; it != last_point; ++it) {
       insert(*it);


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