So, I have no reason to use std::function
for this statement. Just from what I read the following statement can be written using std::function
.
How should this statement look like? Written with std::function
template <class T>
class CFooTemplate
{
public:
typedef void (T::*FOO_STATE)(void);
Explain a little, the logic behind writing.