Answer the question
In order to leave comments, you need to log in
Override operator() to access class member?
Let's say I have such a class (I removed everything superfluous for clarity):
class Window{
public:
Graphics *g;
}
Window myWindow();
myWindow.g->
myWindow.g->Clear(Color::White);
myWindow(Clear(Color::White));
Answer the question
In order to leave comments, you need to log in
Maybe you'd be fine with inheriting your Window from Graphics?
The effect of inheritance is exactly what you want to get in other ways.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question