Boost logo

Boost Users :

Subject: Re: [Boost-users] Compiler error when using property map get()
From: Jeremiah Willcock (jewillco_at_[hidden])
Date: 2010-07-02 20:13:02

On Fri, 2 Jul 2010, Trevor Harmon wrote:

> Hi,
> The get() function for property maps has me puzzled. Calling it in one
> context gives a compiler error, while in another context it does not. A
> trivial example is below. Note that the code in foo() and main() are
> identical. Any guesses as to why the foo() version gives a compiler error
> while the main() version does not?

I think you may not want to inherit from Boost classes; they are not
designed for that. You will probably get more predictable behavior if you
just have the subgraph as a member rather than as a base class.

-- Jeremiah Willcock

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at