$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (abrahams_at_[hidden])
Date: 2000-10-13 06:17:02
----- Original Message -----
From: "Krishna Padmasola" <krishna_at_[hidden]>
> Hi Jeremy,
>
> I am defining a graph property which is of type int. I am supplying an
> int argument to the constructor, which is getting interpreted as the
> number of vertices rather than the graph property.
>
> The constructor 2 (see below) is getting called rather than constructor
> 1.
>
> Is there a fix/workaround?
Of course, Jeremy is the expert here, but a simple workaround would seem to
be:
int main ()
{
Graph g (0, 999); // initializes the graph property with 999.
cout << num_vertices (g) << endl; // prints zero.
return 0;
}