This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: char_traits patch, round two
> Because of 21.1.1, p2? I always thought 21.1, p1 required the primary
> template to be defined as well (not just declared). Seems like the
> terminology used in the two paragraphs is kind of confused.
Perhaps. If you read 21.1.x closely, you'll see that
-2- The struct template
template<class charT> struct char_traits;
shall be provided in the header <string> as a basis for explicit specializations.
and
namespace std {
template<> struct char_traits<char>;
template<> struct char_traits<wchar_t>;
}
-1- The header <string> declares two structs that are specializations of
the template struct char_traits.
Are the only explicitly specified bits in <string>
Please correct me if I've missed something. I believe the current 3.2
sources are standards-conforming.
For people who are curious, I suggest adding the generic defintions back
in and running the testsuite. The issues are immediately obvious.
-benjamin