P
pauldepstein
I am adding to a large code base, and there is far too much code to
paste it in its entirety. Here is some code that I added:
struct MyStruct
{
MyStruct(const std::string& SomeString, const std::string&
AnotherString)
{
}
};
MyStruct("SomeWord", "AnotherWord");
Of course, the above code is not particularly useful. I was following
the technique of making it as simple as possible to try and see what
was triggering the error.
The compiler complains about MyStruct("SomeWord", "AnotherWord");
Referring to the line number where the above line occurs, it says
error C2059: syntax error : 'string'
Can anyone explain the probable cause of the error?
Thank you all very much for your help.
Paul Epstein
paste it in its entirety. Here is some code that I added:
struct MyStruct
{
MyStruct(const std::string& SomeString, const std::string&
AnotherString)
{
}
};
MyStruct("SomeWord", "AnotherWord");
Of course, the above code is not particularly useful. I was following
the technique of making it as simple as possible to try and see what
was triggering the error.
The compiler complains about MyStruct("SomeWord", "AnotherWord");
Referring to the line number where the above line occurs, it says
error C2059: syntax error : 'string'
Can anyone explain the probable cause of the error?
Thank you all very much for your help.
Paul Epstein