template<class V1, class V2>
auto foo(V1 v1, V2 v2) -> decltype(v1+v2);
template<class V1>
int foo(V1 v1, bool v2);
int main(void)
{
sizeof(foo("C++11 is great?", true));
return (0);
}
dGVtcGxhdGU8Y2xhc3MgVjEsIGNsYXNzIFYyPgphdXRvIGZvbyhWMSB2MSwgVjIgdjIpIC0+IGRlY2x0eXBlKHYxK3YyKTsKCnRlbXBsYXRlPGNsYXNzIFYxPgppbnQgZm9vKFYxIHYxLCBib29sIHYyKTsKCmludCBtYWluKHZvaWQpCnsKICAgIHNpemVvZihmb28oIkMrKzExIGlzIGdyZWF0PyIsIHRydWUpKTsKICAgIHJldHVybiAoMCk7Cn0=