0

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

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by StuXYZ
0

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?

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.