class SomeClass
{
Window m_window;
public:
SomeClass()
{
m_window.OnResume = boost::bind( &SomeClass::SomeFunction, this, &m_window );
}
virtual void SomeFunction( Window* )
{
}
};
Now obviously that wont work because bind produces a function with 2 parameters, and 'OnResume' is a function that takes one parameter. How can I achieve this? is there some other boost library that will allow for this that I've overlooked or something?
This does however work if in 'SomeClass's constructor I do:
m_window.OnResume = boost::bind(&SomeClass::SomeFunction, this );
But that just allows for compilation....it's still painfully wrong | C++ Debug Kit :: GameDev Kit :: DirectX Tutorials :: 2D DX Engine | TripleBuffer Software |
| Plug-in Manager :: System Information Class :: D3D9 Hardware Enum | DevMaster :: FlipCode |