Boost logo

Boost Users :

From: Stephen torri (storri_at_[hidden])
Date: 2004-11-14 17:52:08


On Sun, 2004-11-14 at 10:42 -0500, Jeffrey Holle wrote:
> You can't use templates in this manner.
> Ask yourself, which type of Data object do you expect boost.graph to
> instanciate when a new vertex is created? It can only make one choice.

I know that this was broken. I made the declaration that it was.

> If I was doing this, and was concerned about memory consumption, I'd
> consider using a union attribute in Data, along with a type attribute.

Can you provide a simple example using the two types I gave in this
example: float and uint32_t?

Stephen


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