This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
swap does not compile
- From: larsbj at gullik dot net (Lars Gullik Bjønnes)
- To: libstdc++ at gcc dot gnu dot org
- Date: Mon, 12 Jan 2004 10:22:13 +0100
- Subject: swap does not compile
- Organization: LyX Developer http://www.lyx.org/
I suddenly began to see this with gcc 3.4.
Can others reproduce this as well? 3.3.2 has no problem with it.
#include <vector>
using std::swap;
int main()
{
size_t a = 1;
size_t b = 2;
swap(a, b);
}
g++ -o swap swap.C
swap.C: In function `int main()':
swap.C:14: error: no matching function for call to `swap(size_t&, size_t&)'
gcc --version
gcc --version
gcc (GCC) 3.4.0 20040112 (experimental)
--
Lgb