Const char foo[] = "gives me an error"

Then you need to be careful when writing operator=(), the copy constructor, etc as a trivial (shallow) copy probably won't do what you think / want.