C2825 error
following code will generate a C2825 error in VS2005Beta2 July:
#include "stdafx.h" #include <vector> #include <iostream> int _tmain(int argc, _TCHAR* argv[]) { int i = 3, j = 6; std::swap<int>(i, j);//C2825 //but use std::swap<> <i, j>; will be ok return 0; } |
I don't know why this , but who else can explain it to me?
many thanks.

