Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69339 - trunk/libs/geometry/test/algorithms
From: barend.gehrels_at_[hidden]
Date: 2011-02-27 12:29:26


Author: barendgehrels
Date: 2011-02-27 12:29:22 EST (Sun, 27 Feb 2011)
New Revision: 69339
URL: http://svn.boost.org/trac/boost/changeset/69339

Log:
ifdefed ttmath in test_areal
Text files modified:
   trunk/libs/geometry/test/algorithms/union.cpp | 8 ++++++--
   1 files changed, 6 insertions(+), 2 deletions(-)

Modified: trunk/libs/geometry/test/algorithms/union.cpp
==============================================================================
--- trunk/libs/geometry/test/algorithms/union.cpp (original)
+++ trunk/libs/geometry/test/algorithms/union.cpp 2011-02-27 12:29:22 EST (Sun, 27 Feb 2011)
@@ -26,8 +26,12 @@
 
     // This sample was selected because of the border case, and ttmath generates one point more.
     test_one<Polygon, Polygon, Polygon>("star_poly", example_star, example_polygon,
- 1, 1,
- boost::is_same<typename bg::coordinate_type<Ring>::type, ttmath_big>::value ? 28 : 27,
+ 1, 1,
+#if defined(HAVE_TTMATH)
+ boost::is_same<typename bg::coordinate_type<Ring>::type, ttmath_big>::value ? 28 : 27,
+#else
+ 27,
+#endif
             5.647949);
 
     // Pseudo-box as Polygon


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