View Single Post
Old 12 March 2021, 19:59   #26
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,288
Quote:
Originally Posted by Emufr3ak View Post
I can define classes and access them. As soon as I use the new operator I get linker errors (undefined symbol).

You can simply provide your own "operator new()". Actually, you need to create two operator new, the array version and the scalar version, and the corresponding operator delete, also both versions. You need to throw "bad_alloc" then yourself if the allocation fails.
Thomas Richter is offline  
 
Page generated in 0.07448 seconds with 10 queries