This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] libstdc++/6720 and libstdc++/6671
Gabriel Dos Reis wrote:-
> Nathan Myers <ncm-nospam@cantrip.org> writes:
>
> [...]
>
> | When you discard the solution, the problems come back.
>
> Certainly. But we should take care not to cure the symptoms and forget
> about the problem. Don't shoot the messenger. The real problem is
> elsewhere, and the <ext/xxx> is just exposing something much more
> deeper, and no it isn't poor naming.
>
> #include <cmath>
> int main()
> {
> double x = std::sin(9.8);
> }
>
> should not provoque compilation error just because there happens to be
> a file named cmath in the current directory. Cure that problem and
> the symptoms with go away.
I don't agree with your solution of special-casing certain header names,
and I don't think Zack does either. We already have an over-specified
include look-up mechanism.
Neil.