Boost logo

Boost :

Subject: [boost] Trouble with constructors boost::graph::directed_graph from boost::adjacency_list in C++
From: Matthias Beste (matthias.beste_at_[hidden])
Date: 2014-01-31 07:39:51


Dear Boost-Users,

Related to: boost::graph::directed_graph

I've trouble with the Constructors of above as a simple example shows:

<<<<<<<<<<<<<<<<<<<

using namespace boost;

typedef directed_graph<> Directed_Graphtype;

class Mywrapper

{

     private:

         Directed_Graphtype g;

     public:

         Mywrapper() : g() {};

};

>>>>>>>>>>>>>>>>>>

I got the following Error while compiling:

<<<<<<<<<<<<<<<<

HOME/svn_repos/collab_cntfet/trunk/STA_signalintegrity/circuitGraph.h|78| instanziiert von hier|

/usr/include/boost/graph/directed_graph.hpp|96|Fehler: keine passende Funktion für Aufruf von »boost::adjacency_list<boost::listS, boost::listS, boost::bidirectionalS, boost::property<boost::vertex_index_t, unsigned int, boost::no_property>, boost::property<boost::edge_index_t, unsigned int, boost::no_property>, boost::no_property, boost::listS>::adjacency_list(const boost::directed_graph<>&)«|

/usr/include/boost/graph/directed_graph.hpp|96|Anmerkung: Kandidaten sind:|

/usr/include/boost/graph/adjacency_list.hpp|451|Anmerkung: template<class EdgeIterator, class EdgePropertyIterator> boost::adjacency_list::adjacency_list(EdgeIterator, EdgeIterator, EdgePropertyIterator, boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>::vertices_size_type, boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>::edges_size_type, const GraphProperty&)|

/usr/include/boost/graph/adjacency_list.hpp|443|Anmerkung: template<class EdgeIterator> boost::adjacency_list::adjacency_list(EdgeIterator, EdgeIterator, boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>::vertices_size_type, boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>::edges_size_type, const GraphProperty&)|

/usr/include/boost/graph/adjacency_list.hpp|435|Anmerkung: boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>::adjacency_list(boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>::vertices_size_type, const GraphProperty&) [with OutEdgeListS = boost::listS, VertexListS = boost::listS, DirectedS = boost::bidirectionalS, VertexProperty = boost::property<boost::vertex_index_t, unsigned int, boost::no_property>, EdgeProperty = boost::property<boost::edge_index_t, unsigned int, boost::no_property>, GraphProperty = boost::no_property, EdgeListS = boost::listS, boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>::vertices_size_type = long unsigned int]|

/usr/include/boost/graph/adjacency_list.hpp|435|Anmerkung: keine bekannte Umwandlung für Argument 1 von »const boost::directed_graph<>« nach »long unsigned int«|

/usr/include/boost/graph/adjacency_list.hpp|418|Anmerkung: boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>::adjacency_list(const boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>&) [with OutEdgeListS = boost::listS, VertexListS = boost::listS, DirectedS = boost::bidirectionalS, VertexProperty = boost::property<boost::vertex_index_t, unsigned int, boost::no_property>, EdgeProperty = boost::property<boost::edge_index_t, unsigned int, boost::no_property>, GraphProperty = boost::no_property, EdgeListS = boost::listS, boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS> = boost::adjacency_list<boost::listS, boost::listS, boost::bidirectionalS, boost::property<boost::vertex_index_t, unsigned int, boost::no_property>, boost::property<b
  oost::edg
e_index_t, unsigned int, boost::no_property>, boost::no_property, boost::listS>]|

/usr/include/boost/graph/adjacency_list.hpp|418|Anmerkung: keine bekannte Umwandlung für Argument 1 von »const boost::directed_graph<>« nach »const boost::adjacency_list<boost::listS, boost::listS, boost::bidirectionalS, boost::property<boost::vertex_index_t, unsigned int, boost::no_property>, boost::property<boost::edge_index_t, unsigned int, boost::no_property>, boost::no_property, boost::listS>&«|

/usr/include/boost/graph/adjacency_list.hpp|414|Anmerkung: boost::adjacency_list<OutEdgeListS, VertexListS, DirectedS, VertexProperty, EdgeProperty, GraphProperty, EdgeListS>::adjacency_list(const GraphProperty&) [with OutEdgeListS = boost::listS, VertexListS = boost::listS, DirectedS = boost::bidirectionalS, VertexProperty = boost::property<boost::vertex_index_t, unsigned int, boost::no_property>, EdgeProperty = boost::property<boost::edge_index_t, unsigned int, boost::no_property>, GraphProperty = boost::no_property, EdgeListS = boost::listS]|

/usr/include/boost/graph/adjacency_list.hpp|414|Anmerkung: keine bekannte Umwandlung für Argument 1 von »const boost::directed_graph<>« nach »const boost::no_property&«|

||=== Build finished: 11 errors, 0 warnings ===|

>>>>>>>>>>>>>>>>>>>>>>>>>>

I would really like to know, where the problem is with this templates.
The default constructor exists of course for boost::directed_graph and
boost::adjacency_list a.s.o. ... however the compiler don't like them.
This is confusing. Can someone help me out?

Kind Regards Matthias

-- 
Dipl.-Ing. Matthias Beste
Wissenschaftlicher Mitarbeiter
Lehrstuhl für Dependable Nano Computing (CDNC)
Institute für technische Informatik (ITEC)
Karlsruhe Institute of Technology (KIT)
Haid-und-Neu Str.7 (Bldg 07.21)
76131 Karlsruhe, Germany
Phone: +49 721 608-45009; Fax: +49 721 608-43962
Email: matthias.beste(at)kit.edu <mailto:matthias.beste_at_[hidden]>
web: http://cdnc.itec.kit.edu/

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk