假设我有以下内容:
// Foo.h
struct Foo {};
// Bar.h
struct Bar {
template <typename T, typename = typename std::enable_if<std::is_base_of<Foo, T>::value>::type>
void foobar();
};
// Bar.hpp
// ...?
void Bar::foobar() {}
如何foobar
在 Bar.hpp 上声明函数?