Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67084 - trunk/boost/graph
From: jewillco_at_[hidden]
Date: 2010-12-07 12:20:59


Author: jewillco
Date: 2010-12-07 12:20:55 EST (Tue, 07 Dec 2010)
New Revision: 67084
URL: http://svn.boost.org/trac/boost/changeset/67084

Log:
Simplified code for VC++ 7.1
Text files modified:
   trunk/boost/graph/named_function_params.hpp | 16 +++++++++-------
   1 files changed, 9 insertions(+), 7 deletions(-)

Modified: trunk/boost/graph/named_function_params.hpp
==============================================================================
--- trunk/boost/graph/named_function_params.hpp (original)
+++ trunk/boost/graph/named_function_params.hpp 2010-12-07 12:20:55 EST (Tue, 07 Dec 2010)
@@ -584,14 +584,16 @@
         g_hasQ =
           (parameter_exists<ArgPack, PriorityQueueTag>
            ::value));
+ typedef boost::reference_wrapper<int> int_refw;
+ typedef typename boost::parameter::value_type<
+ ArgPack,
+ PriorityQueueTag,
+ int_refw
+ >::type::type
+ param_value_type;
+ typedef typename boost::remove_const<param_value_type>::type param_value_type_no_const;
       typedef priority_queue_maker_helper<g_hasQ, Graph, ArgPack, KeyT, ValueT, KeyMapTag, IndexInHeapMapTag, Compare,
- typename boost::remove_const<
- typename boost::parameter::value_type<
- ArgPack,
- PriorityQueueTag,
- boost::reference_wrapper<int>
- >::type::type
- >::type> helper;
+ param_value_type_no_const> helper;
       typedef typename helper::priority_queue_type priority_queue_type;
 
       static priority_queue_type make_queue(const Graph& g, const ArgPack& ap, KeyT defaultKey) {


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