graph icon indicating copy to clipboard operation
graph copied to clipboard

csr-example.cpp does not compile

Open jzmaddock opened this issue 7 years ago • 2 comments

I see:

1>csr-example.cpp
1>d:\data\boost\boost\boost\graph\graphviz.hpp(265): error C2064: term does not evaluate to a function taking 1 arguments
1>d:\data\boost\boost\boost\graph\graphviz.hpp(291): note: see reference to function template instantiation 'void boost::write_graphviz<Graph,VertexPropertiesWriter,EdgePropertiesWriter,GraphPropertiesWriter,boost::typed_identity_property_map<size_t>>(std::ostream &,const Graph &,VertexPropertiesWriter,EdgePropertiesWriter,GraphPropertiesWriter,VertexID,boost::graph::detail::no_parameter)' being compiled
1>        with
1>        [
1>            Graph=WebGraph,
1>            VertexPropertiesWriter=boost::dynamic_properties,
1>            EdgePropertiesWriter=std::string,
1>            GraphPropertiesWriter=boost::typed_identity_property_map<size_t>,
1>            VertexID=boost::typed_identity_property_map<size_t>
1>        ]
1>d:\data\boost\boost\libs\graph\example\csr-example.cpp(58): note: see reference to function template instantiation 'void boost::write_graphviz<WebGraph,boost::dynamic_properties,std::string,boost::typed_identity_property_map<size_t>>(std::ostream &,const Graph &,VertexPropertiesWriter,EdgePropertiesWriter,GraphPropertiesWriter,boost::graph::detail::no_parameter)' being compiled
1>        with
1>        [
1>            Graph=WebGraph,
1>            VertexPropertiesWriter=boost::dynamic_properties,
1>            EdgePropertiesWriter=std::string,
1>            GraphPropertiesWriter=boost::typed_identity_property_map<size_t>
1>        ]
1>d:\data\boost\boost\boost\graph\graphviz.hpp(271): error C2064: term does not evaluate to a function taking 2 arguments
1>d:\data\boost\boost\boost\graph\graphviz.hpp(277): error C2064: term does not evaluate to a function taking 2 arguments

jzmaddock avatar Dec 16 '18 19:12 jzmaddock

Change line 58 from a call to write_graphviz to write_graphviz_dp to handle the dynamic properties correctly.

deinst avatar Jan 20 '19 22:01 deinst

Why not close this issue? @deinst @jzmaddock

hdu-sdlzx avatar Dec 10 '22 02:12 hdu-sdlzx