T
Takeshi
Hi,
I wonder if anyone knows what I'm doing wrong. I'm trying to create a
typedef based on a pat. Here is the code snippet:
#include <utility>
#include <list>
#include <vector>
typedef pair < int, string > IdNamePair ;
.....
When I compile (VSC++) I get the following error:
adt.h(34) : error C2143: syntax error : missing ';' before '<'
adt.h(34) : error C2059: syntax error : '<'
What gives?. Anyone knows whats wrong with this piece of code?
I wonder if anyone knows what I'm doing wrong. I'm trying to create a
typedef based on a pat. Here is the code snippet:
#include <utility>
#include <list>
#include <vector>
typedef pair < int, string > IdNamePair ;
.....
When I compile (VSC++) I get the following error:
adt.h(34) : error C2143: syntax error : missing ';' before '<'
adt.h(34) : error C2059: syntax error : '<'
What gives?. Anyone knows whats wrong with this piece of code?