In the following code (on a 32 bit machine), if I print out the sizeof the pair, should I get 12? In my compiler I got 16. Is this always the case or it is compiler specific?
pair<int,string> b = std::make_pair(1,"randomcrap");
string c= "randomcrap";
cout << sizeof(c) << endl; //got 8 which make sense
cout << sizeof(b) << endl; //got 16