Boost logo

Boost :

From: Pavol Droba (droba_at_[hidden])
Date: 2003-05-28 04:33:39

On Wed, May 28, 2003 at 11:28:27AM +0400, Vladimir Prus wrote:
> Hi Pavol,
> Pavol Droba wrote:
> > I have been reading the discussiong here about adding the support for
> > unicode.
> >
> > Maybe there is a solution which would allow to have templated versions of
> > relevant classes AND static library in one box.
> >
> >
> > If we decide that specialization for char and wchar_t is sufficient, the
> > headers can contain generic template based declarations, but the
> > implementation will be given only for particular cases ( char and wchar_t
> > ) and so it can be included in the static lib.
> Oh.. that's yet another approach. I *really* feel Boost-wide solution is
> needed.

I'm not sure. This solution is specific for string-like operations where
two types for T are sufficient.

> > Similar idea is used in stl for streams, strings and locales.
> I though that's different. I need to check out again, but IIRC, RW STL
> shipped with borland's free compiler had all string definitions in headers.

I don't know about RW STL, but STLport and VC STL have locale and stream stuff
compiled in the lib. Strings are mostly in headers, but CharTraits are
> > With a help from preprocessor, it should be easy to define two variants
> > in one place.
> > Also that could a possibility, that the .cpp file will be included as
> > headers all this can be done using macros.
> Yep. Another viable option.

It is up to you to decide ...


Boost list run by bdawes at, gregod at, cpdaniel at, john at