|
Boost Users : |
From: Tom Matelich (tmatelich_at_[hidden])
Date: 2003-01-02 01:59:38
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 <ksaleh2_at_[hidden]> [mailto:ksaleh2_at_[hidden]]
> Sent: Wednesday, January 01, 2003 9:21 AM
> To: Boost-Users_at_[hidden]
> 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_at_[hidden], "ksaleh2 <ksaleh2_at_y...>"
> <ksaleh2_at_y...> 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 <boost/config.hpp>
> > #include <iostream>
> >
> > #include <boost/graph/adjacency_list.hpp>
> >
> > using namespace boost;
> > using namespace std;
> >
> >
> > int main()
> > {
> > typedef adjacency_list<vecS,vecS,directedS,
> > property < vertex_name_t, char
> >,property<edge_weight_t,double>
> > > 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<vecS,listS,directedS,
> > property < vertex_name_t, char
> >,property<edge_weight_t,double>
> > > 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_at_[hidden]>
>
>
> 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.
-----------------------------------------------------------------------
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net