//Cant edit this Type (in some lib)
struct Color
{
unsigned __int8 R = 3, G = 3, B = 3, A = 3;
};
//Cant edit this Type (in some lib)
class Colour
{
public:
int R = 1, G = 1, B = 1, A = 1;
};
Colour operator=(Colour& Colour, const Color& B) //<-- error C2801: 'operator =' must be a non-static member
{
}
int main()
{
Color One;
Colour Two;
Colour three = One; //<-- i would like to use the = ,error C2440: 'initializing' : cannot convert from 'Color' to 'Colour'
return 0;
}
Hmm I was afraid it was not possible.... although I thought I saw someone do it in there code. I will just fix it by making a conversion function. Thanks for the help anyways.