#include "Foo.hpp"
#include <iostream>
int main(int argc, char* argv[]) {
Foo<int> foo;
if (foo)
std::cout << "works" << std::endl;
}
template<class T>
struct Foo {
T x;
explicit operator bool() const;
};
#include "Foo.hpp"
template <class T>
Foo<T>::operator bool() const {
return true;
}
template Foo<int>::operator bool() const;