Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53374 - sandbox/SOC/2009/function_graph/boost/function_graph
From: asutton_at_[hidden]
Date: 2009-05-28 21:45:22


Author: asutton
Date: 2009-05-28 21:45:21 EDT (Thu, 28 May 2009)
New Revision: 53374
URL: http://svn.boost.org/trac/boost/changeset/53374

Log:
Fixed compiler errors.

Text files modified:
   sandbox/SOC/2009/function_graph/boost/function_graph/function_graph.hpp | 11 ++++-------
   1 files changed, 4 insertions(+), 7 deletions(-)

Modified: sandbox/SOC/2009/function_graph/boost/function_graph/function_graph.hpp
==============================================================================
--- sandbox/SOC/2009/function_graph/boost/function_graph/function_graph.hpp (original)
+++ sandbox/SOC/2009/function_graph/boost/function_graph/function_graph.hpp 2009-05-28 21:45:21 EDT (Thu, 28 May 2009)
@@ -7,13 +7,10 @@
  *
  */
 
-
-
 #ifndef FUNCTION_GRAPH_HPP_
 #define FUNCTION_GRAPH_HPP_
 
 #include <boost/function.hpp>
-#include <boost/function_types/function_arity.hpp>
 #include <boost/mpl/if.hpp>
 
 namespace boost { namespace graph {
@@ -52,7 +49,7 @@
  * variant will be instantiated for meaningless types such as graph<int>.
  * Obviously, that should fail.
  */
-template <typename T> struct functon_graph { };
+template <typename T> struct function_graph { };
 
 /**
  * @note [asutton] This specialization will be instantiated whenever the
@@ -61,7 +58,7 @@
  * the compiler will match the version above, causing compiler errors.
  */
 template <typename Edge, typename Vertex>
-struct function_graph< function<Edge(Vertex, Vertex)> >
+struct function_graph< boost::function<Edge(Vertex, Vertex)> >
     : function_graph_base< function<Edge(Vertex, Vertex)> >
 { };
 
@@ -69,9 +66,9 @@
  * @note This specialization will match any function of the form E(V,V) and
  * generates the graph over an adapted boost function. Note that functions of
  * the form E(U,V) will match the empty class causing compiler errors.
- *
+ */
 template <typename Edge, typename Vertex>
-struct fucntion_graph<Edge(Vertex, Vertex)>
+struct function_graph<Edge(Vertex, Vertex)>
     : function_graph_base< function<Edge(Vertex, Vertex)> >
 { };
 


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