Hello)
I have such a problem, there is a static (static) function, the pointer to which goes to another class and is called (callback). This function comes in pictures in the form of a structure with 3 char * and when I call this function, this The image must be put in the list.
But from this function I cannot call the list functions, such as push_back (), etc.
Visual Studio says see picture.
Thank you in advance
Code:
".h" public: static void func (BMPImage* frame); std::list <BMPImage*> images; ".cpp"
void Gallery::func(BMPImage* frame){ //вот тут не "видит" }