Boost logo

Boost-Commit :

From: aaron.windsor_at_[hidden]
Date: 2007-10-09 22:18:37


Author: aaron_windsor
Date: 2007-10-09 22:18:37 EDT (Tue, 09 Oct 2007)
New Revision: 39871
URL: http://svn.boost.org/trac/boost/changeset/39871

Log:
Trying to clear some errors from Sun CC.
Text files modified:
   trunk/boost/graph/planar_detail/face_iterators.hpp | 13 ++++++-------
   1 files changed, 6 insertions(+), 7 deletions(-)

Modified: trunk/boost/graph/planar_detail/face_iterators.hpp
==============================================================================
--- trunk/boost/graph/planar_detail/face_iterators.hpp (original)
+++ trunk/boost/graph/planar_detail/face_iterators.hpp 2007-10-09 22:18:37 EDT (Tue, 09 Oct 2007)
@@ -10,6 +10,7 @@
 #define __FACE_ITERATORS_HPP__
 
 #include <boost/iterator/iterator_facade.hpp>
+#include <boost/mpl/bool.hpp>
 #include <boost/graph/graph_traits.hpp>
 
 namespace boost
@@ -61,18 +62,16 @@
   
 
 
- template <typename Graph, typename ValueType>
- struct edge_storage;
+ template <typename Graph, bool StoreEdge>
+ struct edge_storage
+ {};
 
   template <typename Graph>
- struct edge_storage <Graph, typename graph_traits<Graph>::edge_descriptor>
+ struct edge_storage <Graph, true>
   {
     typename graph_traits<Graph>::edge_descriptor value;
   };
 
- template <typename Graph>
- struct edge_storage <Graph, typename graph_traits<Graph>::vertex_descriptor>
- {};
 
 
 
@@ -271,7 +270,7 @@
 
     vertex_t m_lead;
     vertex_t m_follow;
- edge_storage<Graph, ValueType> m_edge;
+ edge_storage<Graph, boost::is_same<ValueType, edge_t>::value > m_edge;
     FaceHandlesMap m_face_handles;
   };
   


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