[Lemon-user] declaration error
Alpár Jüttner
alpar at cs.elte.hu
Thu Mar 17 06:44:33 CET 2011
On Wed, 2011-03-16 at 19:19 -0700, Arun Reddy Kandoor wrote:
> how about doing this before the class declaration?
>
> typedef lemon::ListDigraph NetworkGraph;
It isn't a problem. Class-local typedef declaration is perfecly legal in
C++.
Regard,
Alpar
>
> On Wed, Mar 16, 2011 at 7:16 PM, Kiran Yedavalli
> <kyedavalli at gmail.com> wrote:
> Hi All,
>
>
> I am trying out lemon for the first time. I have the following
> declared:
>
>
> in another namespace
>
>
> class xyz{
> public:
> typedef lemon::ListDigraph NetworkGraph;
>
>
> private:
> NetworkGraph network_graph;
> lemon::ListDigraph::ArcMap<int> weight_map(network_graph);
>
>
> I am getting the following error when I compile this file
> along with others:
>
>
> error: 'network_graph' is not a type
>
>
> I believe this is a correct usage of ArcMap. I looked at demo
> files and the usage matches with what I have written. I am not
> able to explain this error.
>
>
> Any help will be really useful to me.
>
>
> Thanks
> Kiran
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
>
>
>
>
> --
> Arun
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
More information about the Lemon-user
mailing list