Why does this fail to compile in C++11 mode?
Kenny Simpson
theonetruekenny@yahoo.com
Mon Jun 10 04:37:00 GMT 2013
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
More information about the Libstdc++
mailing list