Original Post
The following code generates an error using VS2005 Express:
// TestVector.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <vector>
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
int a=0, b=1;
std::swap<int> (a,b);
system("Pause");
return 0;
} The error is C2825, and is from including Vector and using swap. If I do not use std::swap, I do not generate any errors. This is puzzling me, and I'm finding no solution on Google or anywhere else. The error does not occur in VS.NET 2003