|
Boost Users : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-07-01 11:45:49
Vladimir Prus <ghost_at_[hidden]> writes:
> David Abrahams wrote:
>
>>> 1. Make the library interface templated.
>>> 2. Use narrow classes: e.g. string
>>> 3. Use wide classes: e.g. wstring
>>> 4. Have some class which works with ascii and unicode.
>>>
>>> The first approach is bad for code size reasons.
>>
>> It doesn't have to be. There can be a library object with explicit
>> instantiations of the wide and narrow classes.
>
> Which doubles the size of shared library itself.
It depends; the narrow specialization might be implemented in terms
of the wide one ;-)
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net