[RFC] how to test for swap specializations?
Benjamin Kosnik
bkoz@redhat.com
Mon Mar 1 23:20:00 GMT 2004
Anybody have any ideas on how to test for this? (It's what is left of
libstdc++/13658)
#include <vector>
int main()
{
// Should use vector specialization for swap, and does not.
{
std::vector<int> A;
std::vector<int> B;
std::swap(A, B);
}
// Should use vector specialization for swap, and does.
{
using namespace std;
vector<int> A;
vector<int> B;
swap(A, B);
}
return 0;
}
-benjamin
More information about the Libstdc++
mailing list