|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-07-19 11:55:36
Vladimir Prus <ghost_at_[hidden]> writes:
> David Abrahams wrote:
>
>> > There's no "libs/detail" directory yet. Do you want me to create one,
>> > move utf code there, and possibly add "libs/detail/test" directory which
>> > will show up in regression tests?
>>
>> If it seems neccessary to create a standalone library, then yes.
>
> It seems reasoable, because it's not templated code. Creating a library will
> lead to a set of other problems. If both serialization and program_options
> need to use utf library, then, should they link to that new library, or ask
> that users link to the new library themself?
>
> Since it case of static libraries it's not possible to link utf into
> program_options, seems like the user would have to link utf manually. Hmm...
> that's not good, but I don't see better solution.
For now you could put it in an unnamed namespace and just compile it into
both of the libraries via #include.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk