This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Extensionless headers
>>>>> "Phil" == Phil Edwards <pedwards@disaster.jaj.com> writes:
> Some problems have shown up. :-) Not for users, but for a developer.
> The bits/std_foo.h -> std/foo move is a good simplification, I agree,
> but the problems Nathan raises are more than speculative.
Yep. I've always found the extensionless headers to be an annoyance, for
all the usual reasons; I agree that we should avoid introducing new ones.
I'd just as soon leave the existing solution in place, i.e. the
extensionless header files are in a directory to themselves so they don't
bother anyone, and they just forward to other .h files which contain the
real code. What was wrong with this?
> Now more than previously I think that my suggestion or something like it
> should be applied. To wit:
> - rename std/foo -> std/std_foo.h
> (or a similar pattern if the 'std' duplication bothers people; simply using
> foo.h is too generic and will get us into trouble)
> - have include/Makefile.am make the std/std_foo.h -> foo switch
This sounds fine, too.
Jason