Expression must have integral or enum type (E847) when adding strings

31 May 2011

I'm trying to do this:

HTTPMap msg;

msg["status"] = "Add this " + " to this.";

But I get this error: Expression must have integral or enum type (E847) for the second line. So apparently you can't add strings like this. What would be the correct way?