Why member functions can't be used as template arguments?

前端 未结 2 1756
小蘑菇
小蘑菇 2021-01-04 18:59

Why member functions cannot be used as template arguments? For example, I want to do like:

struct Foo {
    void Bar() { // do something
    }
};
template &         


        
2条回答
提交回复
热议问题