Hey everyone,

I know I should be using templates, but our teacher doesn't want us to modify the code she gave us except for one part.

Code:
class bag
{
public:
    typedef ___ value_type;
    the rest of the class...
Now, I'm trying to make value_type a typedef for a Die class (of my own creation) object. The only issue is, all of the code I have works perfectly fine until I create the following line:

Code:
class bag
{
public:
    typedef Die value_type;
    the rest of the class...
Basically I'm wondering if there are special requirements in order for a type def to work with a class object. My professor mentioned that the class you're using has to have a default constructor, assignment op, overloaded == and != .However, I added those to my class and it didn't change the number of errors at all. I've searched online and only noticed that most articles just speak of using fundamental data types so I figured I'd ask.

Any additional info needed? Feel free to destroy me for leaving it out :-P

Chap