So here is a snippet of my code:
struct dv_nexthop_cost_pair
{
unsigned short nexthop;
unsigned int cost;
};
map<unsigned short, vector<struct dv_nexthop_cost_pair> > dv;
code>I get the following compiler error:
error: ISO C++ forbids declaration of `map' with no type
What is the right way to declare this?
source
share