|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64096 - sandbox/geometry/libs/geometry/test/geometries
From: barend.gehrels_at_[hidden]
Date: 2010-07-17 10:04:46
Author: barendgehrels
Date: 2010-07-17 10:04:45 EDT (Sat, 17 Jul 2010)
New Revision: 64096
URL: http://svn.boost.org/trac/boost/changeset/64096
Log:
Removed "use_std" for linestring / linear_ring because it is not necessary. Default now does "push_back", specialization possible
Plus necessary changes for this.
Also moved stuff from test distance to test_distance.hpp
Text files modified:
sandbox/geometry/libs/geometry/test/geometries/custom_linestring.cpp | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
Modified: sandbox/geometry/libs/geometry/test/geometries/custom_linestring.cpp
==============================================================================
--- sandbox/geometry/libs/geometry/test/geometries/custom_linestring.cpp (original)
+++ sandbox/geometry/libs/geometry/test/geometries/custom_linestring.cpp 2010-07-17 10:04:45 EDT (Sat, 17 Jul 2010)
@@ -51,16 +51,11 @@
template <typename P>
struct tag< custom_linestring2<P> > { typedef linestring_tag type; };
- template <typename P>
- struct use_std< custom_linestring2<P> >
- {
- static const bool value = false;
- };
-
#if ! defined(TEST_FAIL_CLEAR)
template <typename P>
struct clear< custom_linestring2<P> >
{
+ // does not use std::vector<P>.clear() but something else.
static inline void apply(custom_linestring2<P>& ls) { ls.resize(0); }
};
#endif
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