Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 31653 invoked from network); 7 May 2008 21:50:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 21:50:47 -0000 Received: (qmail 72064 invoked by uid 500); 7 May 2008 21:50:49 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 71995 invoked by uid 500); 7 May 2008 21:50:48 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 71984 invoked by uid 99); 7 May 2008 21:50:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 14:50:48 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.30.140.160] (HELO moroha.roguewave.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 21:50:03 +0000 Received: from exchmail01.Blue.Roguewave.Com (exchmail01.blue.roguewave.com [10.22.129.22]) by moroha.roguewave.com (8.13.6/8.13.6) with ESMTP id m47LoF0a028317 for ; Wed, 7 May 2008 21:50:15 GMT X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: [STDCXX-905] 22.locale.synopsis link error on Solaris platforms Date: Wed, 7 May 2008 15:49:34 -0600 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [STDCXX-905] 22.locale.synopsis link error on Solaris platforms Thread-Index: AcirylaNlZV0C4WqR2iMghy2JoHRqgEwagXg References: <481A2836.60309@roguewave.com> From: "Eric Lemings" To: X-Virus-Checked: Checked by ClamAV on apache.org =20 > -----Original Message----- > From: Martin Sebor [mailto:msebor@gmail.com] On Behalf Of Martin Sebor > Sent: Thursday, May 01, 2008 2:30 PM > To: dev@stdcxx.apache.org > Subject: Re: [STDCXX-905] 22.locale.synopsis link error on=20 > Solaris platforms >=20 ... >=20 > What we would need to do if we really wanted to exercise the > template is define a dummy explicit specialization of the > collate facet on a user-defined (non-fundamental) type such > as UserChar from rw_char.h and instantiate the template > operator on it. E.g., something like: >=20 > namespace std { > template <> > struct collate: locale::facet { > /* define all members as no-ops */ > }; > } >=20 > // exercise a specialization other than on the default > // char types > typedef StringTypes::string_type UserString; >=20 > MEMFUN (bool, operator(), (const UserString&, const=20 > UserString&) const); >=20 > Martin >=20 I infer from this that if developers need collate facets for user-defined character types then they are required to define their own specializations for these types. That right? Brad.