Suppose I have the following:
// 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() {}
How do I declare the foobar
function on Bar.hpp?