You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, the following code: template<typename T> T foo() {return T(42); } int a = foo<int>();
produces: return int42;
I would have expected return int(42)?
Using {} works fine, but () concatenate the type and the value somehow.