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
to pass an identity function to an API that expects a unary function,
to help the compiler identify the right chain of type conversions.
The standard uses static_cast for (2), which could be used but it disables
some compile-time verification so I would rather not use static_cast when
not absolutely necessary.
The text was updated successfully, but these errors were encountered:
From the -users ML:
I use the following function on a regular basis:
template < class P_T > P_T const &same (P_T const &p) { return p; }
I use it for two purposes:
The standard uses static_cast for (2), which could be used but it disables
some compile-time verification so I would rather not use static_cast when
not absolutely necessary.
The text was updated successfully, but these errors were encountered: