Boost logo

Boost :

From: Wismar, John (john.wismar_at_[hidden])
Date: 2001-10-26 11:35:17

> -----Original Message-----
> From: David Abrahams [mailto:david.abrahams_at_[hidden]]
> Sent: Friday, October 26, 2001 7:55 AM
> To: boost_at_[hidden]
> Subject: Re: [boost] RE: [Boost-Users] array -v- array_traits
> This demonstrates why using a little bit of name mangling in
> #include guards is a good idea. I use my initials and the
> date, which surely would have prevented this problem if
> either author had done it.

On the other hand, that makes it very inconvenient to use redundant include
guards. (See "Large Scale C++ Software Design" by John Lakos, section 2.5.)

If the include guards are generated from the filename, then the file system
itself can be used to guarantee the uniqueness of the macro.

John Wismar
Architect, Software Development
AllData, a division of AutoZone

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