CString a = "Hello " + "World!"; Is it possible?
- by Sanctus2099
I'm making my own string class and I was wondering if there's any way to replace the compiler behaviour around " characters.
As I said in the title I'd like to make it so that CString a = "Hello " + "World!"; would actually work and not give a compiler error telling that it can't add 2 pointers.
My string class automatically converts to char* when needed and thus writing printf(a) would not break the code.
I'm sure this is a rather weird question but if it's possible I'd really like to know how to do it.
Thank you very much