Inexplicable error with std::string
From: Dave (better_cs_now_at_yahoo.com)
Date: 12/31/03
- Next message: Dave: "Re: abstract class"
- Previous message: Elijah Bailey: "Sorting records using sort()"
- Next in thread: John Carson: "Re: Inexplicable error with std::string"
- Reply: John Carson: "Re: Inexplicable error with std::string"
- Reply: Ron Natalie: "Re: Inexplicable error with std::string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Dec 2003 06:32:57 -0700
Can anybody tell me why the code below should produce the error below? I'm
going nuts here! Am I missing something incredibly obvious and simple?
std::string::size_type idx;
std::string one_line;
.
.
.
idx = one_line.find('\t', 0);
error C2059: syntax error : 'constant'
- Next message: Dave: "Re: abstract class"
- Previous message: Elijah Bailey: "Sorting records using sort()"
- Next in thread: John Carson: "Re: Inexplicable error with std::string"
- Reply: John Carson: "Re: Inexplicable error with std::string"
- Reply: Ron Natalie: "Re: Inexplicable error with std::string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]