incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lemings" <Eric.Lemi...@roguewave.com>
Subject RE: [STDCXX-905] 22.locale.synopsis link error on Solaris platforms
Date Wed, 07 May 2008 21:49:34 GMT
 

> -----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 
> Solaris platforms
> 
...
> 
> 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:
> 
>    namespace std {
>      template <>
>      struct collate<UserChar>: locale::facet {
>          /* define all members as no-ops */
>      };
>    }
> 
>    // exercise a specialization other than on the default
>    // char types
>    typedef StringTypes<UserChar>::string_type UserString;
> 
>    MEMFUN (bool, operator(), (const UserString&, const 
> UserString&) const);
> 
> Martin
> 

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.

Mime
View raw message