Well, the error message is pretty clear, foo already defined in the same namespace, and you are trying to override it.
The βas a different kind of characterβ part assumes that the existing foo is something else, not a class definition. Changing the name is likely to solve your problem. Another way is to put your foo definition in a different namespace. And anyway, I would not recommend you call something like foo in a real project, no matter how small it is;)
SingerOfTheFall
source share