This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/68880] [4.9 Regression][Bisected to r202992] std::operator< overload ignored when using std::lower_bound


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68880

--- Comment #1 from FranÃois Dumont <fdumont at gcc dot gnu.org> ---
Not sure it is a regression. Of course before the patch the operator was called
in namespace std so your operator was considered. Now we are using intermediate
functor that are not in std namespace so your operator is hidden to those
functors.

I don't think the Standard is saying that we should consider namespace std in
this context. So your best choice is simply to put your operator in namespace N
rather than polluting the std one. I hope someone with higher C++ Standard
knowledge will confirm.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]