Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-06-29 11:12:42

Michael Glassford <glassfordm_at_[hidden]> writes:

>> Also, going back to the struct technique, do the struct instances
>> need to be in an anonymous namespace to prevent ODR violations? Just
>> trying to get my head around the concept.
> Probably they should be in a separate namespace, though possibly not
> anonymous.

Anonymous namespaces in header files *cause* ODR violations. Not sure
how they can be used to prevent ODR violations.

Peter, are you planning to get the bind placeholders out of the
unnamed namespace?

Dave Abrahams
Boost Consulting

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