This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Why does this fail to compile in C++11 mode?
- From: Kenny Simpson <theonetruekenny at yahoo dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 9 Jun 2013 21:37:48 -0700 (PDT)
- Subject: 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