RE: [Boost-Users] Re: Simple boost program throws exception
I don't have too much advice except a) try the latest boost b) put a try/catch block around the code, figure out what function is calling and what exception is being thrown.
-----Original Message----- From: ksaleh2
[mailto:ksaleh2@yahoo.com] Sent: Wednesday, January 01, 2003 9:21 AM To: Boost-Users@yahoogroups.com Subject: [Boost-Users] Re: Simple boost program throws exception Hi,
On December 7th I've posted this message, which unfortunately didn't get any reply. I'm not a professional programmer, so forgive me if it is a silly question, but your cooperation will help me understand boost better, thank you and happy new year to all.
--- In Boost-Users@yahoogroups.com, "ksaleh2
" wrote: I'm trying boost for the first time on Codewarrior 8.0 for windows. The Boost version is 1.25.1 from the "Boost Graph Library" accompanying CD. The offensive code is :
#include
#include <iostream> #include
using namespace boost; using namespace std;
int main() { typedef adjacency_list
Graph;
property_map < Graph, vertex_name_t >::type name_map ; property_map < Graph, edge_weight_t >::type value_map ;
Graph g;
typename graph_traits<Graph>::vertex_descriptor a,b;
a = add_vertex(g); name_map[a] = 'a'; b = add_vertex(g); name_map[b] = 'b';
typename graph_traits<Graph>::edge_descriptor ed; bool inserted;
tie(ed, inserted) = add_edge(a, b, g); value_map[ed] = 1.2;
return 0; }
If the second template parameter for class VertexListS is replaced with listS it compiles and run normally.
typedef adjacency_list
Graph;
Can you please advise why?
Best Regards
------------------------ Yahoo! Groups Sponsor ---------------------~--> Flexible Keyboard is the ideal accessory for PDA users that are on the move. http://us.click.yahoo.com/dCBVZC/WnCFAA/xGHJAA/EbFolB/TM -------------------------------------------------------------- -------~->
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
----------------------------------------------------------------------- DISCLAIMER: Information contained in this message and/or attachment(s) may contain confidential information of Zetec, Inc. If you have received this transmission in error, please notify the sender by return email. -----------------------------------------------------------------------
participants (1)
-
Tom Matelich