Original Post
Considering that you can't overload operator=, how are you supposed to allow something like this? MyClass obj = new MyClass(); obj = "hello"; edit: Besides, of course, a normal method. ;)
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more