summaryrefslogtreecommitdiff
path: root/libs/geometry/test/algorithms/test_length.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/geometry/test/algorithms/test_length.hpp')
-rw-r--r--libs/geometry/test/algorithms/test_length.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/geometry/test/algorithms/test_length.hpp b/libs/geometry/test/algorithms/test_length.hpp
index 2cf540463..9543a3035 100644
--- a/libs/geometry/test/algorithms/test_length.hpp
+++ b/libs/geometry/test/algorithms/test_length.hpp
@@ -14,14 +14,14 @@
#include <boost/geometry/algorithms/length.hpp>
#include <boost/geometry/io/wkt/read.hpp>
#include <boost/geometry/strategies/strategies.hpp>
-#include <boost/typeof/typeof.hpp>
#include <boost/variant/variant.hpp>
template <typename Geometry>
void test_length(Geometry const& geometry, long double expected_length)
{
- BOOST_AUTO(length, bg::length(geometry));
+ typename bg::default_length_result<Geometry>::type
+ length = bg::length(geometry);
#ifdef BOOST_GEOMETRY_TEST_DEBUG
std::ostringstream out;