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
template<typename T> int junk1(T::junk);
template<typename T> int junk2(typename T::junk);
The first of these (in C++14 onwards) declares a template variable initialized by T::junk, the second declares a template function taking T::junk as a parameter. They are disturbingly similar.
So Richard Smith suggested I should file a bug report to get some kind of warning in place under -Wvexing-parse.
The text was updated successfully, but these errors were encountered:
Extended Description
Consider:
The first of these (in C++14 onwards) declares a template variable initialized by T::junk, the second declares a template function taking T::junk as a parameter. They are disturbingly similar.
So Richard Smith suggested I should file a bug report to get some kind of warning in place under -Wvexing-parse.
The text was updated successfully, but these errors were encountered: