|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72575 - in sandbox-branches/geometry/index_080_new: boost/geometry/extensions/index/translator tests
From: adam.wulkiewicz_at_[hidden]
Date: 2011-06-13 18:25:35
Author: awulkiew
Date: 2011-06-13 18:25:35 EDT (Mon, 13 Jun 2011)
New Revision: 72575
URL: http://svn.boost.org/trac/boost/changeset/72575
Log:
translator::getter::equals() changed. Value::operator== used instead of geometry::equals(...).
Text files modified:
sandbox-branches/geometry/index_080_new/boost/geometry/extensions/index/translator/getter.hpp | 5 ++++-
sandbox-branches/geometry/index_080_new/tests/translators.hpp | 5 +++++
2 files changed, 9 insertions(+), 1 deletions(-)
Modified: sandbox-branches/geometry/index_080_new/boost/geometry/extensions/index/translator/getter.hpp
==============================================================================
--- sandbox-branches/geometry/index_080_new/boost/geometry/extensions/index/translator/getter.hpp (original)
+++ sandbox-branches/geometry/index_080_new/boost/geometry/extensions/index/translator/getter.hpp 2011-06-13 18:25:35 EDT (Mon, 13 Jun 2011)
@@ -24,10 +24,13 @@
bool equals(Value const& v1, Value const& v2) const
{
- return geometry::equals(operator()(v1), operator()(v2));
+ //return geometry::equals(operator()(v1), operator()(v2));
+ return v1 == v2;
}
};
+// TODO: awulkiew - implement specialization for Value* ?
+
}}}} // namespace boost::geometry::index::translator
#endif // BOOST_GEOMETRY_EXTENSIONS_INDEX_TRANSLATOR_GETTER_HPP
Modified: sandbox-branches/geometry/index_080_new/tests/translators.hpp
==============================================================================
--- sandbox-branches/geometry/index_080_new/tests/translators.hpp (original)
+++ sandbox-branches/geometry/index_080_new/tests/translators.hpp 2011-06-13 18:25:35 EDT (Mon, 13 Jun 2011)
@@ -21,6 +21,11 @@
return i;
}
+ bool operator==(tests_translators_val const& v2)
+ {
+ return boost::geometry::equals(i, v2.i);
+ }
+
Indexable i;
};
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