4 ms·
> Why would operator overloading allocate memory? What if I wanted to overload the + operator to concatenate strings?
by dinglejungle 5y ago
> Why would operator overloading allocate memory?
What if I wanted to overload the + operator to concatenate strings?
- xfer 5y agoYes that was poorly thought out. I realized it after i commented. There is definitely some merit in being puritanical about not having any allocations in operators.