Re: What is this error?
From: Ulrich Eckhardt (doomster_at_knuut.de)
Date: 01/17/05
- Next message: Stephen Howe: "Re: STL error"
- Previous message: Gerd Orfey: "Re: STL error"
- In reply to: MA: "What is this error?"
- Next in thread: John Smith: "Re: What is this error?"
- Reply: John Smith: "Re: What is this error?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 17 Jan 2005 10:45:38 +0100
MA wrote:
> Line that generate error:
>
> typedef vector<string>::value_type value_type;
That should be
std::vector<std::string>
but that's not the problem as the error message shows[slightly reformatted]:
> error C2653:
> 'vector<std::string, std::allocator<std::string> >'
> is not a class or namespace name
>
> I check and it seems that vector is included to the file.
Double-check that. Also make sure you have the missing 'std::' or using
directives in the code.
Uli
- Next message: Stephen Howe: "Re: STL error"
- Previous message: Gerd Orfey: "Re: STL error"
- In reply to: MA: "What is this error?"
- Next in thread: John Smith: "Re: What is this error?"
- Reply: John Smith: "Re: What is this error?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|