Boost logo

Boost :

From: Fernando Cacciola (fernando_cacciola_at_[hidden])
Date: 2006-07-25 09:32:29

Martin Wille wrote:
> Joe Gottman wrote:
>>In order to avoid having an unnamed namespace inside a header file, none.hpp
>>has been rewritten as
>> namespace boost {
>> none_t const none = ((none_t)0) ;
>> } // namespace
>>But if two source files contain none.hpp won't this violate the
>>one-definition rule?
> none would have internal linkage according to So it wouldn't
> violate the ODR. But a pointer to none from one translation unit would
> differ from a pointer to none from a different TU.
Does this difference matter?

Fernando Cacciola

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