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
If I rewrite the function in the following way, everything works: template <class Y> void f(Y& y) { typename Y::value_type value = 42; y.value = value; }
The text was updated successfully, but these errors were encountered:
slycelote
changed the title
Type alias is removed when used as a template parameter default type
Declarations referenced in a dependent template argument may get removed
Jul 2, 2017
Example: http://ideone.com/QaLeKP
If I rewrite the function in the following way, everything works:
template <class Y> void f(Y& y) { typename Y::value_type value = 42; y.value = value; }
The text was updated successfully, but these errors were encountered: