0
#include<utility>
#include<tuple>

#include "stdafx.h"
#include<string>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
    pair<int, string>p(42, "forty-two");
    cout << p.first << " " << p.second << endl;

    p = make_pair<int,string>(112,"one-one-two") ;
    cout << p.first << " " << p.second << endl;

    return 0;
}
// Can some one help  to figure out,i use visual studio 2013 and here on line 14
//i get an error -no instance of function template.It's something to do with make_pair.Thanks  
2
Contributors
2
Replies
16
Views
3 Years
Discussion Span
Last Post by aluhnev
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.