C++ doesn't do that, it is strongly typed. You can't just throw variables around and hope it will work.

What Peter said.

Also, be careful with enums and mainspace scope. Your are using the...