N
Ney André de Mello Zunino
Hello.
It's been about a year since I last did some C++ programming. I am now
paying the price as I try to catch up with it.
The following is the initial snippet of a simple program I am working
on. I don't know or remember how one goes about typedef'ing a subtype of
a template.
#include <string>
#include <map>
namespace {
using namespace std;
typedef map<string, int> Word_Map;
typedef Word_Map::value_type Word_Map_Pair;
}
The g++ compiler is not happy about the second typedef. I have tried
adding /typename/ to it, but the compiler then yells at me for using
/typename/ outside of a template.
Could anyone help a rusty fellow programmer?
Thank you,
It's been about a year since I last did some C++ programming. I am now
paying the price as I try to catch up with it.
The following is the initial snippet of a simple program I am working
on. I don't know or remember how one goes about typedef'ing a subtype of
a template.
#include <string>
#include <map>
namespace {
using namespace std;
typedef map<string, int> Word_Map;
typedef Word_Map::value_type Word_Map_Pair;
}
The g++ compiler is not happy about the second typedef. I have tried
adding /typename/ to it, but the compiler then yells at me for using
/typename/ outside of a template.
Could anyone help a rusty fellow programmer?
Thank you,