This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: STL include file guard names
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Ed Rice-Senior Programmer PGS Software Perth <ed dot rice at pgs dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: 30 Jul 2004 20:30:26 +0200
- Subject: Re: STL include file guard names
- Organization: Integrable Solutions
- References: <4109FC2B.2050200@pgs.com>
Ed Rice-Senior Programmer PGS Software Perth <ed.rice@pgs.com> writes:
| Hi,
|
| I noticed that the STL header file guard macro names in the version of
| libstc++ that ships with gcc 3.4.1 have changed compared to those that
| shipped with gcc 3.3.3. For example in
| include/c++/3.4.1/bits/stl_set.h the header guard is
|
| #ifndef _SET_H
| #define _SET_H 1
|
| while with gcc 3.3.3 include/c++/3.3.3/bits/stl_set.h used header guards
|
| #ifndef __GLIBCPP_INTERNAL_SET_H
| #define __GLIBCPP_INTERNAL_SET_H
|
| Is there a reason for the change? It seems to me that the 3.3.3 style
| has the benefit of being much less likely to clash with other
| libraries.
Which others? The name space _[A-Z].* is reserved to the
implementation.
-- Gaby