Anyone see a problem with this line? My Color header is included (I use it all the time).

map and vector are included.

void GenerateColors(map<Color<unsigned char>, int> &Map, vector<Color<unsigned char> > &List, int num)

I don't see anything wrong?

Dave

hmm I moved the function to a different file and then it compiled.... I didn't see any name conflicts with List or Map, so I still have no idea why it wasn't working?

Without a bit more code this isn't going to be easy.

I would guess that the error is two different Color classe. It is very common in things.

I will add I would start by using std::map<> etc, and not using using namespace std; The use of List and Map as variable names is horiffic. Name them as something related to their use. I can see they are a map/list.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.