This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: Why does this fail to compile in C++11 mode?


A few more data points:

In c++11 mode, cstdio pulls in ::remove, but in c++98 mode, including <algorithm> doesn't pull in <cstdio>

Changing the template instantiation to:
template iterator_type remove<>(iterator_type, iterator_type, const X&);

or

template iterator_type remove<iterator_type, X>(iterator_type, iterator_type, const X&);

makes it happy.

All tested on x86_64 Linux w/ 4.9 from 20130601.

-Kenny


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