From: Lewis Hyatt (lhyatt_at_[hidden])
Date: 2007-11-07 14:00:40
Felipe Magno de Almeida wrote:
> On 11/7/07, Thorsten Ottosen <thorsten.ottosen_at_[hidden]> wrote:
>> 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?
> I couldn't think of anything that wouldn't cause ODR violation.
Can't you just change it to
const char* const count = "count";
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk