|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69134 - trunk/boost/geometry/algorithms
From: barend.gehrels_at_[hidden]
Date: 2011-02-21 18:15:34
Author: barendgehrels
Date: 2011-02-21 18:15:33 EST (Mon, 21 Feb 2011)
New Revision: 69134
URL: http://svn.boost.org/trac/boost/changeset/69134
Log:
Added geometry:: to set to avoid clash with std::set
Text files modified:
trunk/boost/geometry/algorithms/assign.hpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
Modified: trunk/boost/geometry/algorithms/assign.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/assign.hpp (original)
+++ trunk/boost/geometry/algorithms/assign.hpp 2011-02-21 18:15:33 EST (Mon, 21 Feb 2011)
@@ -49,7 +49,7 @@
template <typename P, std::size_t I>
inline void apply(P& point) const
{
- set<I>(point, m_value);
+ geometry::set<I>(point, m_value);
}
private:
@@ -86,7 +86,7 @@
static inline void apply(Box& box, coordinate_type const& value)
{
- set<Index, Dimension>(box, value);
+ geometry::set<Index, Dimension>(box, value);
initialize<Box, Index, Dimension + 1, DimensionCount>::apply(box, value);
}
};
@@ -176,8 +176,8 @@
// Copy coordinates
typedef typename coordinate_type<Point>::type coordinate_type;
- set<0>(point, boost::numeric_cast<coordinate_type>(get<Corner1, 0>(box)));
- set<1>(point, boost::numeric_cast<coordinate_type>(get<Corner2, 1>(box)));
+ geometry::set<0>(point, boost::numeric_cast<coordinate_type>(get<Corner1, 0>(box)));
+ geometry::set<1>(point, boost::numeric_cast<coordinate_type>(get<Corner2, 1>(box)));
}
@@ -279,10 +279,10 @@
static inline void apply(Geometry& geometry,
Type const& x1, Type const& y1, Type const& x2, Type const& y2)
{
- set<0, 0>(geometry, boost::numeric_cast<coordinate_type>(x1));
- set<0, 1>(geometry, boost::numeric_cast<coordinate_type>(y1));
- set<1, 0>(geometry, boost::numeric_cast<coordinate_type>(x2));
- set<1, 1>(geometry, boost::numeric_cast<coordinate_type>(y2));
+ geometry::set<0, 0>(geometry, boost::numeric_cast<coordinate_type>(x1));
+ geometry::set<0, 1>(geometry, boost::numeric_cast<coordinate_type>(y1));
+ geometry::set<1, 0>(geometry, boost::numeric_cast<coordinate_type>(x2));
+ geometry::set<1, 1>(geometry, boost::numeric_cast<coordinate_type>(y2));
}
};
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