Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2006-01-13 06:01:00


Bugs item #1404663, was opened at 2006-01-13 03:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1404663&group_id=7586

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: graph
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Jeremy Siek (jsiek)
Summary: Getting out edges for empty graph cause access violation.

Initial Comment:
Getting out edges for empty graph cause access
violation, see example below:

#include <boost/graph/adjacency_list.hpp>

using namespace boost;

typedef boost::adjacency_list<boost::vecS,
boost::vecS, boost::bidirectionalS> Graph;
typedef boost::graph_traits<Graph>::in_edge_iterator
InEdgeIterator;
typedef boost::graph_traits<Graph>::out_edge_iterator
OutEdgeIterator;
typedef boost::graph_traits<Graph>::vertex_descriptor
Vertex;

int main()
{
        Graph g;
        Vertex CurrVertex = vertex(10, g);

        OutEdgeIterator in_start, in_end;
        tie(in_start, in_end) = out_edges(CurrVertex,
g);

        return 0;
}

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1404663&group_id=7586

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


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