[computer-go] C++: where did string go?

Lars Nilsson chamaeleon at gmail.com
Thu Aug 10 10:01:20 PDT 2006


You probably want to use std::string instead of string (do not use
"using namespace std;" in a header file to get around this, it is bad
form).

Lars Nilsson

On 8/10/06, Peter Drake <drake at lclark.edu> wrote:
>
> A silly little question: I've got a .h file in which I've #included
> <string>, and then I declare:
>
> string point2string(point_t point);
>
> The compiler complains that:
>
> 'string' does not name a type
>
>
> Am I missing something trivial here? It feels like this used to work.
>
> Peter Drake
> Assistant Professor of Computer Science
> Lewis & Clark College
> http://www.lclark.edu/~drake/
>
>
>
>
>
> _______________________________________________
> computer-go mailing list
> computer-go at computer-go.org
> http://www.computer-go.org/mailman/listinfo/computer-go/
>
>


More information about the computer-go mailing list