12345678910111213141516171819
#include <iostream> template <class T> bool foo(T value) { return true; } bool foo(int value) { return false; } int main() { std::cout << foo(5) << std::endl; std::cout << foo<>(5) << std::endl; std::cout << foo<int>(5) << std::endl; }
0 1 1