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
Chapter 2.3 Type inference:
Note: auto cannot be used for function arguments, so the following is not possible to compile
(considering overloading, we should use templates):
int add(auto x, auto y);
C++20 includes this support.
The text was updated successfully, but these errors were encountered:
pramoddevendra
changed the title
Type inference - auto as functional parameters
Type inference - auto as function parameters
Apr 6, 2021
Chapter 2.3 Type inference:
Note: auto cannot be used for function arguments, so the following is not possible to compile
(considering overloading, we should use templates):
int add(auto x, auto y);
C++20 includes this support.
The text was updated successfully, but these errors were encountered: