|
Boost : |
From: Martin Bonner (Martin.Bonner_at_[hidden])
Date: 2007-11-07 07:07:47
----Original Message----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of Thorsten Ottosen
Sent: 07 November 2007 12:02 To: boost_at_[hidden]
Subject: Re: [boost] [ptr_container] trunk has problems with multiple
definitions of xml_names with multiple TUs
> Felipe Magno de Almeida skrev:
>> This gives multiple definition errors when #include'd by more than
>> one translation unit.
>>
>> namespace boost
>> {
>> namespace ptr_container_detail
>> {
>> const char* count = "count";
>> const char* item = "item";
>> const char* first = "first";
>> const char* second = "second";
>> }
>> }
>
> Thanks. Is there an easy way to fix it?
>
> -Thorsten
One option would be:
namespace ptr_container_detail
{
const char* count() { return "count"; }
etc.
-- Martin Bonner Senior Software Engineer/Team Leader PI SHURLOK LTD Telephone: +44 1223 441434 / 203894 (direct) Fax: +44 1223 203999 Email: martin.bonner_at_[hidden] www.pi-shurlok.com disclaimer
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk