|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67175 - sandbox/geometry/boost/geometry/core
From: barend.gehrels_at_[hidden]
Date: 2010-12-11 09:53:03
Author: barendgehrels
Date: 2010-12-11 09:53:01 EST (Sat, 11 Dec 2010)
New Revision: 67175
URL: http://svn.boost.org/trac/boost/changeset/67175
Log:
Changed const impl.
Text files modified:
sandbox/geometry/boost/geometry/core/interior_type.hpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Modified: sandbox/geometry/boost/geometry/core/interior_type.hpp
==============================================================================
--- sandbox/geometry/boost/geometry/core/interior_type.hpp (original)
+++ sandbox/geometry/boost/geometry/core/interior_type.hpp 2010-12-11 09:53:01 EST (Sat, 11 Dec 2010)
@@ -16,7 +16,6 @@
#include <boost/geometry/core/tag.hpp>
#include <boost/geometry/core/tags.hpp>
-#include <boost/geometry/util/add_const_if_c.hpp>
#include <boost/geometry/util/ensure_const_reference.hpp>
namespace boost { namespace geometry
@@ -125,7 +124,7 @@
>::type type;
};
-template <typename Geometry, bool IsConst>
+template <typename Geometry>
struct interior_return_type
{
typedef typename core_dispatch::interior_return_type
@@ -134,9 +133,9 @@
Geometry
>::type ir_type;
- typedef typename mpl::if_c
+ typedef typename mpl::if_
<
- IsConst,
+ boost::is_const<Geometry>,
typename ensure_const_reference<ir_type>::type,
ir_type
>::type type;
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