Boost logo

Boost Users :

From: Doug Gregor (dgregor_at_[hidden])
Date: 2004-11-22 20:36:07


On Nov 22, 2004, at 8:25 PM, TC MA wrote:
> int
> main()
> {
> using namespace boost;
> using std::string;

Move this struct...

> struct edgeStruct {
> int weight;
> };

outside of main, because of this error message:

> /home/tcma/cpp/boosttcma/libs/graph/graph_property.cpp:21:
> error: `main()::edgeStruct' uses local type
> `main()::edgeStruct'

        Doug


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