Boost logo

Boost Users :

From: Siegel, Matthew (matthew.siegel_at_[hidden])
Date: 2002-05-17 07:49:07


Hi,

First off . . . great graph library.

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.

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)


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