Boost logo

Boost Users :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-05-17 09:57:01


Hi Matt,

On Fri, 17 May 2002, Siegel, Matthew wrote:
> First off . . . great graph library.

Thanks!

> I can not get Visual C++ 6 SP5 to compile when I try to put multiple
> properties on the edges. Seems like a problem with the 3rd parameter that a
> boost::property can take another boost::property.
>
> When the 2nd property is taken out of the edge property list, everything
> works fine.

Urg, I hate those internal compiler errors. You might want to send in a
bug report to Microsoft. There's a really good chance they'll have it
fixed for the next release.

I'm afraid I don't have a VC++ compiler handy to try to play with
workarounds...

If you get really desparate you might try switching to using external
property maps for the edge properties, and just have a single internal
edge property for edge_index. That's a pain though...

Cheers,
Jeremy

> Thanks for the help!
>
> Matt
>
> Example:
>
> // Vertex property - name as a string
> typedef boost::property<boost::vertex_name_t, std::string> VertexProperties;
>
> // Edge property - name as string, weight as a double
> typedef boost::property< boost::edge_weight_t, double,
> boost::property< boost::edge_name_t, std::string> > EdgeProperties;
>
> // Graph definition
> typedef boost::adjacency_list<
> boost::vecS, // Store out-edges in a std::vector
> boost::vecS, // Store vertex set in a std::vector
> boost::directedS, // Graph is directed
> VertexProperties, // Vertex properties
> EdgeProperties> Graph; // Edge properties
>
> Produces the following compiler error:
>
> Compiling...
> routetable.cpp
> c:\dev\lib\stlport-4.5.3\stlport\stl\char_traits.h(138) : fatal error C1001:
> INTERNAL COMPILER ERROR
> (compiler file 'msc1.cpp', line 1794)
> Please choose the Technical Support command on the Visual C++
> Help menu, or open the Technical Support help file for more
> information
> Error executing cl.exe.
>
> routing.exe - 1 error(s), 0 warning(s)
>
>
>
> 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/
>
>

----------------------------------------------------------------------
 Jeremy Siek http://www.osl.iu.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------


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