Boost logo

Boost Users :

From: Johan Oudinet (johan.oudinet_at_[hidden])
Date: 2006-04-19 16:26:38


On 4/19/06, Fred Labrosse <ffl_at_[hidden]> wrote:
> class place
> {
> public:
> place(const imalib::imageD3* anAppearance, const std::string& aName,
> unsigned short aNumber)
> : appearance(anAppearance),
> name(aName),
> number(aNumber)
> {
> }
> ~place();
> const imalib::imageD3* getAppearance() const
> {
> return(appearance);
> }
> const std::string& getName() const
> {
> return(name);
> }
> unsigned short getNumber() const
> {
> return(number);
> }
> private:
> const imalib::imageD3* appearance;
> std::string name;
  public:
> unsigned short number;
> };
>
> [snip]
> Should that be something like:
>
> default_writer dw;
> default_writer gw;
> write_graphviz(of, theMap, pw, dw, gw, get(&place.getNumber(), theMap));

No, you're get parameter is wrong, try this :
write_graphviz (of, theMap, pw, dw, gw, get (&place::number, theMap));

>
> ???
> This was actually taken from an example on bundled properties.
>
> Cheers,
>

--
Johan

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