#pragma once
#include <functional>
template <typename T>
class Demo
{
public:
typedef Demo<T> type;
std::function<void()> func() {
return std::bind(&type::cb, this);
}
void cb() {
}
Demo() {}
~Demo() {}
};
can not find references by "void cb()" function