select2nd STL functor
Why won't this compile? Dev-Cpp 4.9.8.0 on Windows XP says "'select2nd' undeclared" but all the books say it is in a header called "functional". Obviously this code isn't supposed to do anything other than compile...
#include <utility>
#include <functional>
using namespace std;
int main()
{
select2nd<pair<int,int> > x;
return 0;
}
#include <utility>
#include <functional>
using namespace std;
int main()
{
select2nd<pair<int,int> > x;
return 0;
}
