class TestClass { public: TestClass(); template TestClass(T t) {++t;} ~TestClass() {} void function(); }; TestClass::TestClass() {} void TestClass::function() {} int main() { TestClass test; test.function(); }