This is my code, I include string only in the header word.h. I don't understand where the problem is.
#ifndef WORD_H
#define WORD_H
#include <string>
class word : public string
{
private:
static string valid_ch;
public:
word() {}
word(const string&);
static word extract(const string&, size_type&);
};
#endif