Compilation in GNU G++ 5.1.0

Revision en1, by LoDThe, 2016-12-27 17:24:36

GNU G++ 5.1.0 doesn't compile next code:

#include <vector>

using namespace std;

vector <pair <int, int>> a(0);

int main()
{
	return 0;
}

But succeыsfully compile this code:

#include <vector>

using namespace std;

#define pii pair <int, int>

vector <pii> a(0);

int main()
{
	return 0;
}

Why the second code compile without space (" ") after "pii"?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru2 Russian LoDThe 2016-12-27 17:28:20 4 Мелкая правка: 'сле "pii" там нет пробе' -> 'сле "pii" нет пробе'
en1 English LoDThe 2016-12-27 17:24:36 441 Initial revision for English translation
ru1 Russian LoDThe 2016-12-27 17:19:21 486 Первая редакция (опубликовано)