Guest_imported
New member
- Jan 1, 1970
- 0
Hi - I have had an error that's been driving me nuts all day! Any help would be greatly appreciated. I have already exhausted all internet searches for help with this topic in spite of similar articles but i can't seem to get this exact instance of my error resolved.
By the way, this code compiled perfectly on unix but i am pasting it into visual c++ and this is the only error i am really getting. from what i can tell, it is a minor bug. i need the fix!
The issue at hand:
#include <strstrea.h>
FileInfo parseLine(string & line)
{
istrstream curLine(line.c_str());
}
//this line gives me error C2664: '__thiscall istrstream::istrstream(char *)' : cannot convert parameter 1 from 'const char *' to 'char *'
Conversion loses qualifiers
how can i fix this?? Thanks so much for any help.
Melissa
istemp@kramerlevin.com
By the way, this code compiled perfectly on unix but i am pasting it into visual c++ and this is the only error i am really getting. from what i can tell, it is a minor bug. i need the fix!
The issue at hand:
#include <strstrea.h>
FileInfo parseLine(string & line)
{
istrstream curLine(line.c_str());
}
//this line gives me error C2664: '__thiscall istrstream::istrstream(char *)' : cannot convert parameter 1 from 'const char *' to 'char *'
Conversion loses qualifiers
how can i fix this?? Thanks so much for any help.
Melissa
istemp@kramerlevin.com