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
in [iosfwd.syn], char_traits is declared as a class.
template<class charT> class char_traits;
template<> class char_traits<char>;
template<> class char_traits<char8_t>;
template<> class char_traits<char16_t>;
template<> class char_traits<char32_t>;
template<> class char_traits<wchar_t>;
In [char.traits.require] and [char.traits.specializations], they're defined as structs: template<class charT> struct char_traits;
and
Actually, on at least one compiler (MSVC) it does matter, and clang will warn if you declare something as a class and then later define it as a struct if you use -Wmismatched-tags
in [iosfwd.syn],
char_traits
is declared as a class.In [char.traits.require] and [char.traits.specializations], they're defined as structs:
template<class charT> struct char_traits;
and
Since everyone implements them as structs, I think that [iosfwd.syn] should be changed.
The text was updated successfully, but these errors were encountered: